From 613fd10ae6a3275c1ed953df00a20621f6af80ed Mon Sep 17 00:00:00 2001 From: Lukas Kucharczyk Date: Sun, 18 Aug 2024 09:45:30 +0200 Subject: [PATCH] replace 7daystodie server container --- docker-compose.yml | 15 +----------- services/7dtdserver.yml | 51 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 14 deletions(-) create mode 100644 services/7dtdserver.yml diff --git a/docker-compose.yml b/docker-compose.yml index 96f51dd..9aa6fce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,7 @@ include: - services/portainer.yml - services/drone/drone.yml - services/enshrouded.yml + - services/7dtdserver.yml services: caddy: @@ -204,20 +205,6 @@ services: ipv4_address: 192.168.240.11 restart: unless-stopped - 7daystodie: - image: 7daysserver:latest - container_name: 7dtd - volumes: - - ${DOCKER_STORAGE_PATH}/7daystodie/saves:/home/steam/.local/share/7DaysToDie/Saves - - ${DOCKER_STORAGE_PATH}/7daystodie/server:/home/steam/server - ports: - - 26900-26902:26900-26902/udp - - 18500:8080 - networks: - public: - ipv4_address: 192.168.240.12 - restart: unless-stopped - stash: image: stashapp/stash:latest container_name: stash diff --git a/services/7dtdserver.yml b/services/7dtdserver.yml new file mode 100644 index 0000000..eb372b2 --- /dev/null +++ b/services/7dtdserver.yml @@ -0,0 +1,51 @@ +--- + +services: + 7dtdserver: + image: vinanrra/7dtd-server + container_name: 7dtdserver + environment: + - PUID=${PUID} + - PGID=${PGID} + - START_MODE=1 # Change between START MODES + - VERSION=stable # Change between 7 days to die versions + - TimeZone=Europe/Prague # Optional - Change Timezone + - TEST_ALERT=NO # Optional - Send a test alert + - UPDATE_MODS=NO # Optional - This will allow mods to be update on start, each mod also need to have XXXX_UPDATE=YES to update on start + - MODS_URLS="" # Optional - Mods urls to install, must be ZIP or RAR. + - ALLOC_FIXES=NO # Optional - Install ALLOC FIXES + - ALLOC_FIXES_UPDATE=NO # Optional - Update Allocs Fixes before server start + - UNDEAD_LEGACY=NO # Optional - Install Undead Legacy mod, if DARKNESS_FALLS it's enable will not install anything + - UNDEAD_LEGACY_VERSION=stable # Optional - Undead Legacy version + - UNDEAD_LEGACY_UPDATE=NO # Optional - Update Undead Legacy mod before server start + - DARKNESS_FALLS=NO # Optional - Install Darkness Falls mod, if UNDEAD_LEGACY it's enable will not install anything + - DARKNESS_FALLS_UPDATE=NO # Optional - Update Darkness Falls mod before server start + - DARKNESS_FALLS_URL=False # Optional - Install the provided Darkness Falls url + - CPM=NO # Optional - CSMM Patron's Mod (CPM) + - CPM_UPDATE=NO # Optional - Update CPM before server start + - BEPINEX=NO # Optional - BepInEx + - BEPINEX_UPDATE=NO # Optional - Update BepInEx before server start + - BACKUP=NO # Optional - Backup server + - BACKUP_HOUR=5 # Optional - Backup hour 0-23 + - BACKUP_MAX=7 # Optional - Max backups to keep + - MONITOR=NO # Optional - Keeps server up if crash + volumes: + - "${DOCKER_STORAGE_PATH}/7daystodie/7DaysToDie:/home/sdtdserver/.local/share/7DaysToDie/" # 7 Days To Die world saves + - "${DOCKER_STORAGE_PATH}/7daystodie/LGSM-Config:/home/sdtdserver/lgsm/config-lgsm/sdtdserver" # LGSM config folder + - "${DOCKER_STORAGE_PATH}/7daystodie/ServerFiles:/home/sdtdserver/serverfiles/" # Optional - serverfiles folder + - "${DOCKER_STORAGE_PATH}/7daystodie/log:/home/sdtdserver/log/" # Optional - Logs folder + - "${DOCKER_STORAGE_PATH}/7daystodie/backups:/home/sdtdserver/lgsm/backup/" # Optional - If BACKUP=NO, backups folder + networks: + public: + ipv4_address: 192.168.240.12 + ports: + - 26900:26900/tcp # Default game ports + - 26900:26900/udp # Default game ports + - 26901:26901/udp # Default game ports + - 26902:26902/udp # Default game ports + - 8085:8080/tcp # OPTIONAL - WEBADMIN + - 8086:8081/tcp # OPTIONAL - TELNET + - 8087:8082/tcp # OPTIONAL - WEBSERVER https://7dtd.illy.bz/wiki/Server%20fixes + restart: unless-stopped # INFO - NEVER USE WITH START_MODE=4 or START_MODE=0 + +