Official wiki: https://pzwiki.net/wiki/Dedicated_server
Example docker-compose.yml:
services:
project-zomboid:
container_name: project_zomboid
image: danixu86/project-zomboid-dedicated-server:latest
restart: unless-stopped
ports:
- "16261:16261/udp"
- "16262:16262/udp"
- "16261:16261/tcp"
expose:
- "16261"
- "16262"
environment:
- "ADMINUSERNAME=admin"
- "ADMINPASSWORD=changeMe"
- "DEBUG=true"
- "NOSTEAM=false"
- "SERVERNAME=default"
# Allowed options are Apocalypse, Beginner, Builder, FirstWeek, SixMonthsLater, Survival and Survivor
- "SERVERPRESET=Apocalypse"
# Set to true if you want to use a custome preset instead of the one set in SERVERPRESET
- "SERVERPRESETREPLACE=false"
- "LANG=en_EN.UTF-8"
# This password will be used to connect to the server and to also connect to the RCON port of the server
- "PASSWORD=password"
#- "WORKSHOP_IDS:"
#- "MOD_IDS:"
volumes:
- ./data:/home/steam/Zomboid
- ./workshop-mods:/home/steam/pz-dedicated/steamapps/workshop
In order to enable the RCON admin console, the following values must be present in your servername.ini file
RCONPort=16261
RCONPassword=changeMe