Skip to content
프로젝트

indifferentbroccoli/projectzomboid-server-docker

GitHub에서 보기

소개

This is a Dockerized version of the Project Zomboid dedicated server.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

marketing_assets_banner GitHub License GitHub Release GitHub Repo stars Discord Docker Pulls

Game server hosting

Fast RAM, high-speed internet

Eat lag for breakfast

Try our Project Zomboid Server hosting free for 2 days!

Project Zomboid Server Docker (B42 Unstable Supported)

[!IMPORTANT] Using Docker Desktop with WSL2 on Windows will result in a very slow download!

Server Requirements

Resource Minimum Recommended
CPU 4 cores 4+ cores
RAM 4GB Recommend over 8GB for stable operation
Storage 5GB 10GB

How to use

Copy the .env.example file to a new file called .env file. Then use either docker compose or docker run

[!IMPORTANT] Please make sure to change the following in the .env: RCON_PASSWORD/ADMIN_USERNAME/ADMIN_PASSWORD

Docker compose

Starting the server with Docker Compose:

services:
  projectzomboid:
    image: indifferentbroccoli/projectzomboid-server-docker
    restart: unless-stopped
    container_name: projectzomboid
    stop_grace_period: 30s
    ports:
      - 16261:16261/udp
      - 16262:16262/udp
      - 27015:27015/tcp
    env_file:
      - .env
    volumes:
      - ./server-files:/project-zomboid
      - ./server-data:/project-zomboid-config

Then run:

docker-compose up -d

Docker Run

docker run -d \
    --restart unless-stopped \
    --name projectzomboid \
    --stop-timeout 30 \
    -p 16261:16261/udp \
    -p 16262:16262/udp \
    -p 27015:27015/tcp \
    --env-file .env \
    -v ./server-files:/project-zomboid \
    -v ./server-data:/project-zomboid-config \
    indifferentbroccoli/projectzomboid-server-docker

Environment Variables

The following environment variables control server behaviour:

Variable Default Info
PUID 1000 User ID the server runs as. Required.
PGID 1000 Group ID the server runs as. Required.
ADMIN_USERNAME admin Admin username
ADMIN_PASSWORD CHANGEME Admin password. Please change this before starting the server.
RCON_PASSWORD RCON password
RCON_PORT 27015 The port for the RCON (Remote Console)
SERVER_NAME pzserver Name of the server/map
DEFAULT_PORT 16261 Default starting port for player data.
UDP_PORT 16262 UDP port. Minimum=0 Maximum=65535
MAX_PLAYERS 32 Maximum number of players that can be on the server at one time.
MEMORY_XMX_GB 8 Server maximum memory allocation in GB. Sets -Xmx in ProjectZomboid64.json
MEMORY_XMS_GB Optional: Server initial memory allocation in GB. Sets -Xms in ProjectZomboid64.json. If not specified, only -Xmx is configured
VM_ARGS Optional: extra JVM args (comma-separated) appended to vmArgs in ProjectZomboid64.json.
FIX_MOD_CASE false If set to true, creates lowercase symlinks for files and folders with uppercase characters in the mods folders (fixes case-sensitivity issues on Linux).
UPDATE_ON_START true If set to false, skips downloading and validating server files from Steam on startup. The server will always be installed if start-server.sh is missing.
SERVER_BRANCH "" Steam branch to install (e.g. "unstable" for Build 42 Unstable, "legacy41" for Build 41). Leave empty for the default public branch.
STEAM_VAC true Enable Steam VAC anti-cheat.
USE_STEAM true Whether the server is Steam-enabled.
AUTO_MOD_UPDATE false If set to true, checks for workshop mod updates and restarts the server with an in-game countdown when one is found.
CHECK_MODS_INTERVAL 10 Minutes between mod update checks. Minimum 10.
RESTART_DELAY 5 Minutes of in-game warnings before restarting for a mod update.
DISCORD_ENABLED false If set to true, also sends the restart countdown to DISCORD_WEBHOOK.
DISCORD_WEBHOOK Optional: Discord webhook URL for restart messages.
HTTP_URL Optional: when mods need an update, POSTs {"username", "event": "mods-outdated"} here every check. A positive number in the response starts a restart countdown of that many minutes and sends mod-update-restart when it ends. 0 skips the countdown and restart, and the request repeats next interval.
HTTP_USERNAME Sent as username in the HTTP_URL request body.
HTTP_AUTH Optional: user:password for basic auth on HTTP_URL requests.

Configuration Files

These files are stored in your server-data volume (./server-data on the host), under Server/. They persist across container restarts and can be edited directly while the server is stopped.

<SERVER_NAME>.ini

Path: server-data/Server/<SERVER_NAME>.ini

The main server settings file. Controls gameplay options such as PvP, loot respawn, safehouse rules, anti-cheat, player limits, and more. This file is generated by the server on first run. Edit it directly to configure anything not exposed as an environment variable.

<SERVER_NAME>_SandboxVars.lua

Path: server-data/Server/<SERVER_NAME>_SandboxVars.lua

Controls sandbox/world settings such as zombie population, loot abundance, season, time of day, and other in-world difficulty options. Generated by the server on first run. Changes take effect on server restart.

<SERVER_NAME>_spawnregions.lua

Path: server-data/Server/<SERVER_NAME>_spawnregions.lua

Defines the spawn regions available to players when they first join. Each region maps to a named area on the map. You can restrict or expand available spawn points by editing this file. A default is created on first run based on the active map.

Developer information

Building the image

You can build the image from the Dockerfile using the following command:

docker build -t indifferentbroccoli/projectzomboid-server-docker .

관련 프로젝트 살펴보기

불러오는 중…