From e0bfc6a0efd464fcdeb2d33879c6bb60133b5e6e Mon Sep 17 00:00:00 2001 From: Janis Date: Tue, 19 Dec 2023 19:39:03 +0100 Subject: [PATCH] Update server stop delay and comments in app.py and docker-compose.yml --- app/app.py | 4 ++-- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/app.py b/app/app.py index b443e84..8d74968 100644 --- a/app/app.py +++ b/app/app.py @@ -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') diff --git a/docker-compose.yml b/docker-compose.yml index b394d60..37f9086 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"