mirror of
https://github.com/DerTyp7/docker_minecraft_server_auto_starter.git
synced 2025-10-28 20:32:16 +01:00
Update server stop delay and comments in app.py and docker-compose.yml
This commit is contained in:
@@ -34,8 +34,8 @@ def main() -> None:
|
||||
for service_name in docker_handler.get_port_map().values():
|
||||
minecraft_server_handler.add_server(service_name)
|
||||
|
||||
logging.info('[INIT] wait 10 seconds before stopping all servers...')
|
||||
time.sleep(10)
|
||||
logging.info('[INIT] wait 20 seconds before stopping all servers...')
|
||||
time.sleep(20)
|
||||
minecraft_server_handler.stop_all_servers()
|
||||
logging.info('[INIT] minecraft server handler initialized')
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ services:
|
||||
mc:
|
||||
container_name: example_mc_server_1
|
||||
image: itzg/minecraft-server
|
||||
restart: unless-stopped #! This is important. If you restart the server automatically, the auto_starter will not work
|
||||
restart: unless-stopped #! This is important. If you restart the server always automatically, the auto_starter will not work
|
||||
environment:
|
||||
type: "PAPER"
|
||||
EULA: "TRUE"
|
||||
@@ -89,7 +89,7 @@ services:
|
||||
mc2:
|
||||
container_name: example_mc_server_2
|
||||
image: itzg/minecraft-server
|
||||
restart: unless-stopped #! This is important. If you restart the server automatically, the auto_starter will not work
|
||||
restart: unless-stopped #! This is important. If you restart the server always automatically, the auto_starter will not work
|
||||
environment:
|
||||
type: "PAPER"
|
||||
EULA: "TRUE"
|
||||
|
||||
Reference in New Issue
Block a user