From 28a741ffba2fc6bc3f08c383fe315a492caccdb3 Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Wed, 22 Feb 2023 21:21:25 -0800 Subject: [PATCH] Make the container always restart unless explicitly stopped. --- docker-compose.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ac312fe..886c78c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,15 +22,14 @@ services: # - 2303:2303/udp # - 2304:2304/udp # - 27016:27016/udp - # Restart the server if it should exit non zero. - # A zero exit means a normal shutdown. - restart: on-failure + # Always restart, unless stopped + restart: unless-stopped # Allows attaching a debugger from the host # cap_add: # - SYS_PTRACE # Do nothing instead of starting the server, which is the default. # Helpful for development or debugging. -# command: tail -f /dev/null +# command: tail -f /dev/null volumes: - homedir:/home/user - ./files:/files