dayzdockerserver/docker-compose.yml
2023-03-30 10:19:05 -07:00

40 lines
1.2 KiB
YAML

version: "3.3"
# This is where the server files, profile, mods, and logs will reside.
# The server script does its best to clean up the copious logs that the
# server creates, but with mods, this volume will grow rather large.
# It's best to keep an eye on its size.
volumes:
homedir:
services:
main:
build: .
volumes:
- homedir:/home/user
- ./files:/files
# To have the server show up in the LAN tab of the DayZ launcher,
# it must run under host mode.
network_mode: host
# The above is mutually exclusive with the below. If you don't need
# the server to show up on the LAN, comment out the network_mode above
# and uncomment the port mappings below.
# ports:
# - 2302:2302/udp
# - 2303:2303/udp
# - 2304:2304/udp
# - 27016:27016/udp
# Always restart, unless stopped
restart: unless-stopped
# Allows attaching a debugger from the host
# cap_add:
# - SYS_PTRACE
# Allows core files to be created within the container. These are VERY LARGE! Enable only for debugging!
# ulimits:
# core:
# soft: -1
# hard: -1
# Do nothing instead of starting the server, which is the default.
# Helpful for development or debugging.
# command: tail -f /dev/null