mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 22:31:18 +00:00
Make the container always restart unless explicitly stopped.
This commit is contained in:
parent
40fce24641
commit
28a741ffba
1 changed files with 3 additions and 4 deletions
|
@ -22,15 +22,14 @@ services:
|
||||||
# - 2303:2303/udp
|
# - 2303:2303/udp
|
||||||
# - 2304:2304/udp
|
# - 2304:2304/udp
|
||||||
# - 27016:27016/udp
|
# - 27016:27016/udp
|
||||||
# Restart the server if it should exit non zero.
|
# Always restart, unless stopped
|
||||||
# A zero exit means a normal shutdown.
|
restart: unless-stopped
|
||||||
restart: on-failure
|
|
||||||
# Allows attaching a debugger from the host
|
# Allows attaching a debugger from the host
|
||||||
# cap_add:
|
# cap_add:
|
||||||
# - SYS_PTRACE
|
# - SYS_PTRACE
|
||||||
# Do nothing instead of starting the server, which is the default.
|
# Do nothing instead of starting the server, which is the default.
|
||||||
# Helpful for development or debugging.
|
# Helpful for development or debugging.
|
||||||
# command: tail -f /dev/null
|
# command: tail -f /dev/null
|
||||||
volumes:
|
volumes:
|
||||||
- homedir:/home/user
|
- homedir:/home/user
|
||||||
- ./files:/files
|
- ./files:/files
|
||||||
|
|
Loading…
Add table
Reference in a new issue