mirror of
https://github.com/DerTyp7/docker_minecraft_server_auto_starter.git
synced 2025-10-29 04:42:07 +01:00
Update server ports in nginxHandler.py and
docker-compose.yml
This commit is contained in:
@@ -34,8 +34,8 @@ class NginxHandler:
|
||||
|
||||
for port in port_ip_map:
|
||||
nginx_conf.write(' upstream upstream_{} {{\n'.format(port))
|
||||
nginx_conf.write(' server {}:{};\n'.format(
|
||||
port_ip_map[port], port))
|
||||
nginx_conf.write(' server {}:25565;\n'.format(
|
||||
port_ip_map[port]))
|
||||
nginx_conf.write(
|
||||
' server 127.0.0.1:{} backup;\n'.format(port))
|
||||
nginx_conf.write(' }\n')
|
||||
|
||||
@@ -30,6 +30,8 @@ services:
|
||||
type: "PAPER"
|
||||
EULA: "TRUE"
|
||||
MOTD: "TEST1"
|
||||
#! Dont change SERVER_PORT. Use PORT_IP_MAP in minecraft_server_auto_starter instead.
|
||||
#! SERVER_PORT default is "25565"
|
||||
networks:
|
||||
mc_network:
|
||||
ipv4_address: 172.20.0.3
|
||||
@@ -39,7 +41,8 @@ services:
|
||||
type: "PAPER"
|
||||
EULA: "TRUE"
|
||||
MOTD: "TEST2"
|
||||
SERVER_PORT: "25566"
|
||||
#! Dont change SERVER_PORT. Use PORT_IP_MAP in minecraft_server_auto_starter instead.
|
||||
#! SERVER_PORT default is "25565"
|
||||
networks:
|
||||
mc_network:
|
||||
ipv4_address: 172.20.0.4
|
||||
|
||||
Reference in New Issue
Block a user