mirror of
				https://github.com/DerTyp7/docker_minecraft_server_auto_starter.git
				synced 2025-10-29 20:52:09 +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: |         for port in port_ip_map: | ||||||
|             nginx_conf.write('    upstream upstream_{} {{\n'.format(port)) |             nginx_conf.write('    upstream upstream_{} {{\n'.format(port)) | ||||||
|             nginx_conf.write('        server {}:{};\n'.format( |             nginx_conf.write('        server {}:25565;\n'.format( | ||||||
|                 port_ip_map[port], port)) |                 port_ip_map[port])) | ||||||
|             nginx_conf.write( |             nginx_conf.write( | ||||||
|                 '        server 127.0.0.1:{} backup;\n'.format(port)) |                 '        server 127.0.0.1:{} backup;\n'.format(port)) | ||||||
|             nginx_conf.write('    }\n') |             nginx_conf.write('    }\n') | ||||||
|   | |||||||
| @@ -30,6 +30,8 @@ services: | |||||||
|       type: "PAPER" |       type: "PAPER" | ||||||
|       EULA: "TRUE" |       EULA: "TRUE" | ||||||
|       MOTD: "TEST1" |       MOTD: "TEST1" | ||||||
|  |       #! Dont change SERVER_PORT. Use PORT_IP_MAP in minecraft_server_auto_starter instead. | ||||||
|  |       #! SERVER_PORT default is "25565" | ||||||
|     networks: |     networks: | ||||||
|       mc_network: |       mc_network: | ||||||
|         ipv4_address: 172.20.0.3 |         ipv4_address: 172.20.0.3 | ||||||
| @@ -39,7 +41,8 @@ services: | |||||||
|       type: "PAPER" |       type: "PAPER" | ||||||
|       EULA: "TRUE" |       EULA: "TRUE" | ||||||
|       MOTD: "TEST2" |       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: |     networks: | ||||||
|       mc_network: |       mc_network: | ||||||
|         ipv4_address: 172.20.0.4 |         ipv4_address: 172.20.0.4 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 DerTyp7
					DerTyp7