dayzdockerserver/docker-compose.yml
Daniel Ceregatti 71004b4fcc Start turning this project into a provisioning system: The main image will manage the base server files and mod files, then run servers as separate containers with these volumes mounted read-only, so they can be shared across server instances.
Add command line xml merge tool for when that time comes.
Add Red Falcon Heliz mod as the work-in-progress for getting a turnkey system that merges many different XML files that a full server mod installation will require.
Fix finding a mod by index and use that for all mod operations.
Start re-working how mods are added/removed/activated/deactivated. Split the script up into separate files with distinct functionality. WIP.
Add a template system for handling mod XML files.
Add an express web server to be the provisioning container frontend.
Add lots of comments.
Add TL;DR for turnkey release server install.
2023-05-13 20:58:35 -07:00

64 lines
1.6 KiB
YAML

version: "3.3"
volumes:
# For steamcmd files and resource files used by the scripts
homedir_main:
# For workshop.cfg, for now
homedir_server:
# Where the server files will be installed
serverfiles:
# Server profile files
profiles:
# Server maps
mpmissions:
# Mods
mods:
services:
main:
build: web
volumes:
- homedir_main:/home/user
- serverfiles:/serverfiles
- mods:/serverfiles/steamapps/workshop/content
- mpmissions:/serverfiles/mpmissions
- ./files:/files:ro
- ./web:/web:ro
ports:
- "8000:8000/tcp"
restart: no
server:
build: server
volumes:
- homedir_server:/home/user
- serverfiles:/serverfiles:ro
- mods:/serverfiles/steamapps/workshop/content:ro
- mpmissions:/serverfiles/mpmissions
- profiles:/profiles
- ./files:/files
- ./bin:/files/bin
# 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:
# # Game port
# - 2302:2302/udp
# # RCON port
# - 2302:2302/udp
# # Steam port
# - 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