### Configure Server Start Modes Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Defines the operational mode for the server container upon startup. Options range from installing and stopping, starting, updating, to backing up the server. ```APIDOC START_MODE Description: Specifies the server startup behavior. Values: 0: Install server and STOP the container. 1: Start the server. 2: Update server and STOP the container. 3: Update server and START the container (useful for existing servers). 4: Backup server and STOP the container. ``` -------------------------------- ### Configure Alloc Fixes Installation Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Manages the installation and update of Alloc Fixes, a server optimization mod for 7 Days to Die. The version installed depends on the 7 Days to Die branch. Requires `UPDATE_MODS=YES` for updates. ```APIDOC ALLOC_FIXES Description: Install Alloc Fixes. The version installed will match the 7 Days to Die branch version. Values: YES, NO Default: NO ALLOC_FIXES_UPDATE Description: Update Alloc Fixes. Requires UPDATE_MODS=YES. The update process depends on your 7 Days to Die version. Values: YES, NO Default: NO ``` -------------------------------- ### Configure BepInEx Installation Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Manages the installation and update of BepInEx, a modding framework for 7 Days to Die. The latest version of BepInEx is installed by default. Requires `UPDATE_MODS=YES` for updates. ```APIDOC BEPINEX Description: Install the latest version of BepInEx. Values: YES, NO Default: NO BEPINEX_UPDATE Description: Update BepInEx on every server start. Requires UPDATE_MODS=YES. Values: YES, NO Default: NO ``` -------------------------------- ### LinuxGSM Configuration Options Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Configures LinuxGSM features such as server backups, status monitoring, and test alerts. ```APIDOC LinuxGSM Parameters: BACKUP: Enable/disable server backups (default: NO). Keeps latest 5 backups, max 30 days. (More info: https://docs.linuxgsm.com/commands/backup) MONITOR: Enable/disable server status monitoring and automatic restarts on crash (default: NO). (More info: https://docs.linuxgsm.com/commands/monitor) TEST_ALERT: Enable/disable test alerts on server start (default: NO). ``` -------------------------------- ### Mod Management Configuration Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Settings for managing game mods, including global update settings, installing mods from URLs, and specific overhaul mods like Undead Legacy. ```APIDOC Mod Management: Global: UPDATE_MODS: Allow mods to be updated before server start (default: NO). Requires XXX_UPDATE=YES for specific mods. (More info: https://docs.linuxgsm.com/mods/update) Provided User Mods: MODS_URLS: Install mods from URLs, supports zip and rar (e.g., "URL1,URL2"). Overhaul Mods: Undead Legacy: UNDEAD_LEGACY: Install Undead Legacy mod (default: NO). Not installed if DARKNESS_FALLS is enabled. (More info: https://ul.subquake.com/) UNDEAD_LEGACY_VERSION: Set Undead Legacy version (e.g., stable, EXP). (More info: https://ul.subquake.com/download) UNDEAD_LEGACY_UPDATE: Update Undead Legacy on server install/start (default: NO). Requires UPDATE_MODS=YES. (More info: https://ul.subquake.com/patch-notes) UNDEAD_LEGACY_URL: Install a custom Undead Legacy version from a URL (default: False). Does not add custom XML settings. ``` -------------------------------- ### 7 Days to Die Specific Parameters Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Allows selection of different 7 Days to Die game versions or branches for the server installation. ```APIDOC 7 Days to Die Parameters: VERSION: Change between 7 Days to Die versions/branches (optional) (e.g., stable) (More info: https://steamdb.info/app/251570/depots/) ``` -------------------------------- ### General Docker Environment Variables Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Configures core aspects of the Docker container, including user/group IDs, startup behavior, time zone, and restart policies. ```APIDOC General Parameters: CHANGE_CONFIG_DIR_OWNERSHIP: Disable chown of config dirs (More info: parameters.md#directory-ownership) LINUXGSM_VERSION: Set LinuxGSM script version (e.g., v24.3.4) (More info: https://github.com/GameServerManagers/LinuxGSM/tags) PGID: Set GroupID (e.g., 1000) (More info: user_groups_identifiers.md) PUID: Set UserID (e.g., 1000) (More info: user_groups_identifiers.md) START_MODE: Container start mode (required) (More info: parameters.md#start-modes) TimeZone: Set server time zone (e.g., Europe/Madrid) (Recommended) (More info: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) --restart unless-stopped: Restart policy (NEVER USE WITH START_MODE=0, 2 or 4) (More info: https://docs.docker.com/config/containers/start-containers-automatically/#use-a-restart-policy) ``` -------------------------------- ### Configure CSMM Patron's Mod (CPM) Installation Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Manages the installation and update of CSMM Patron's Mod (CPM), which also installs Alloc Fixes. The CPM version is determined by the 7 Days to Die branch. Requires `UPDATE_MODS=YES` for updates. ```APIDOC CPM Description: Install CSMM Patron's Mod (CPM). This will also install Alloc Fixes. The CPM version installed depends on the 7 Days to Die branch. Values: YES, NO Default: NO CPM_UPDATE Description: Update CPM on every server start. Requires UPDATE_MODS=YES. The update process depends on your 7 Days to Die version. Values: YES, NO Default: NO ``` -------------------------------- ### Configure Darkness Falls Mod Installation Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Manages the installation and update of the Darkness Falls mod for 7 Days to Die. Requires `UPDATE_MODS=YES` for updates. Custom URLs can be provided for specific versions. ```APIDOC DARKNESS_FALLS Description: Install Darkness Falls mod. If UNDEAD_LEGACY is enabled, it will not be installed. Values: YES, NO Default: NO DARKNESS_FALLS_UPDATE Description: Update Darkness Falls mod on server install. Requires UPDATE_MODS=YES. If enabled, the mod will update every time the server starts, which may take time. Values: YES, NO Default: NO DARKNESS_FALLS_URL Description: Install a custom Darkness Falls version from a git URL. Ensure compatibility with your 7 Days to Die branch. Values: Must be a git url Default: False ``` -------------------------------- ### Setting MODS_URLS for Automatic Mod Downloads Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/mods_support.md Demonstrates how to use the MODS_URLS environment variable to specify multiple mod download URLs for automatic installation. URLs should be separated by commas. ```shell MODS_URLS="https://github.com/ErrorNull0/enZombies/archive/refs/heads/main.zip,https://github.com/ErrorNull0/enZombiesSnufkinAddon/archive/refs/heads/main.zip" ``` -------------------------------- ### Get Host User/Group IDs Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/user_groups_identifiers.md This bash command retrieves your current user's User ID (UID) and Group ID (GID) on the host system. These IDs are crucial for setting the PUID and PGID environment variables in Docker to ensure correct file permissions for mounted volumes. ```bash $ id username uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup) ``` -------------------------------- ### Docker Compose for 7 Days to Die Server Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/usage.md This Docker Compose configuration sets up a 7 Days to Die server. It includes environment variables for game versions, mods, backups, and user permissions, as well as volume mappings for data persistence and port configurations for network access. ```yaml version: '2' services: 7dtdserver: image: vinanrra/7dtd-server container_name: 7dtdserver environment: - LINUXGSM_VERSION=v24.3.4 # Change to use another version of LinuxGSM - START_MODE=1 # Change between START MODES - VERSION=stable # Change between 7 days to die versions - PUID=1000 # Remember to use same as your user - PGID=1000 # Remember to use same as your user - TimeZone=Europe/Madrid # 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: - /path/to/folder/7DaysToDie:/home/sdtdserver/.local/share/7DaysToDie/ # 7 Days To Die world saves - /path/to/folder/LGSM-Config:/home/sdtdserver/lgsm/config-lgsm/sdtdserver # LGSM config folder - /path/to/folder/ServerFiles:/home/sdtdserver/serverfiles/ # Optional - serverfiles folder - /path/to/folder/log:/home/sdtdserver/log/ # Optional - Logs folder - /path/to/folder/backups:/home/sdtdserver/lgsm/backup/ # Optional - If BACKUP=NO, backups folder 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 - 8080:8080/tcp # OPTIONAL - WEBADMIN - 8081:8081/tcp # OPTIONAL - TELNET - 8082:8082/tcp # OPTIONAL - WEBSERVER https://7dtd.illy.bz/wiki/Server%20fixes ulimits: nofile: soft: "10240" hard: "10240" restart: unless-stopped # INFO - NEVER USE WITH START_MODE=4 or START_MODE=0 ``` -------------------------------- ### Docker Port Mappings for 7 Days to Die Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Specifies the network ports that need to be exposed from the Docker container to the host system for server connectivity and administration. ```APIDOC Ports: - 26900:26900/tcp (Default 7DaysToDie game port - required) - 26900:26900/udp (Default 7DaysToDie game port - required) - 26901:26901/udp (Default 7DaysToDie game port - required) - 26902:26902/udp (Default 7DaysToDie game port - required) - 8080:8080/tcp (Default 7DaysToDie webadmin port - optional, requires password change in sdtdserver.xml) - 8081:8081/tcp (Default 7DaysToDie telnet port - optional) - 8082:8082/tcp (Default Alloc Fixes Map GUI webserver port - optional) ``` -------------------------------- ### Docker Volumes for 7 Days to Die Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/parameters.md Defines the persistent storage locations for 7 Days to Die server data, backups, configuration, and logs within the Docker container. ```APIDOC Volumes: - /path/to/7DaysToDie:/home/sdtdserver/.local/share/7DaysToDie/ (7DaysToDie saves, where maps are stored) - /path/to/BackupFolder:/home/sdtdserver/lgsm/backup/ (7DaysToDie server backups files) - /path/to/LGSM-Config:/home/sdtdserver/lgsm/config-lgsm/sdtdserver/ (LGSM config files) - /path/to/Logs:/home/sdtdserver/log/ (7DaysToDie server log files) - /path/to/ServerFiles:/home/sdtdserver/serverfiles/ (7DaysToDie server config files) ``` -------------------------------- ### Inspect Docker Build Version Label Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/support.md Retrieves the build version label from a Docker container or image. This command is used to check the specific version of the deployed server image or container. ```shell docker inspect -f '{{ index .Config.Labels "build_version" }}' 7dtdserver ``` -------------------------------- ### Monitor Docker Container Logs Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/support.md Streams the logs of a Docker container in real-time. This is useful for monitoring the server's activity and troubleshooting issues as they happen. ```shell docker logs -f 7dtdserver ``` -------------------------------- ### Update Server via Docker Run/Create Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/updating_info.md Steps to update the Docker image, stop, remove, and recreate the container for a 7 Days to Die server when not using Docker Compose. This ensures the latest image is pulled and the server is restarted with preserved data. ```docker docker pull vinanrra/7dtd-server docker stop 7dtdserver docker rm 7dtdserver docker start 7dtdserver docker image prune -f ``` -------------------------------- ### Execute Shell in Docker Container Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/support.md Provides interactive shell access to a running Docker container. Use this to execute commands directly inside the container environment. ```shell docker exec -it 7dtdserver /bin/bash ``` -------------------------------- ### Trigger 7 Days to Die Server Backup Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/backups.md This command executes the server backup script within the Docker Compose environment for a 7 Days to Die server. It is used to manually initiate a backup process, overriding any scheduled times. ```bash docker-compose exec 7dtdserver ./scripts/server_backup.sh ``` -------------------------------- ### Update Server via Docker Compose Source: https://github.com/vinanrra/docker-7daystodie/blob/master/docs/updating_info.md Instructions for updating a 7 Days to Die server managed by Docker Compose. This includes pulling the latest image for all services or a specific service, and then restarting the containers to apply the updates. ```docker # Update all images and restart containers docker-compose pull docker-compose up -d # Or update a single image and restart its container docker-compose pull 7dtdserver docker-compose up -d 7dtdserver # Remove old dangling images docker image prune -f ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.