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"