Skip to content

Dockerized Project Zomboid dedicated server with Playit.gg UDP tunneling, persistent data/mod volumes, and simple Makefile tooling for ops (logs, RCON player list, server messages).

Notifications You must be signed in to change notification settings

Mirkoffcito/pzomboid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Zomboid Dedicated Server (Docker) + Playit.gg

This repo runs a Project Zomboid dedicated server via Docker and exposes it through Playit.gg using a headless agent.

Prerequisites

  • Linux host (required for network_mode: host)
  • Docker Engine + Docker Compose (plugin)
  • A Playit.gg account
  • A Playit Agent Secret Key
  • (Optional but recommended) make

Install make (Ubuntu/Debian):

sudo apt update
sudo apt install -y make

Playit.gg Setup

  1. Create an Agent in Playit and copy its Secret Key.

  2. Create ONE UDP tunnel:

  • Local Port: 16261
  • Port Count: 2 (covers 16261 and 16262)

Do NOT create overlapping tunnels like:

  • 16261 count 2 AND 16262 count 2

Repo Setup

  1. Clone the repo
git clone https://github.com/Mirkoffcito/pzomboid.git
cd pzomboid
  1. Create your local .env

cp .env.example .env nano .env

  1. Fill at least:
  • PLAYIT_SECRET_KEY
  • ADMINUSERNAME
  • ADMINPASSWORD
  • SERVERNAME

Example .env:

PLAYIT_SECRET_KEY=replace_me
STEAMAPPBRANCH=unstable

ADMINUSERNAME=admin
ADMINPASSWORD=ChangeMePlease
SERVERNAME=YourServerName

PORT=16261

Quick Start

  1. Start the stack
  • make up
  1. Follow logs
  • make logs
  • make logs-zomboid
  • make logs-playit
  1. Stop everything
  • make down

If you change Dockerfile/build args

  • make rebuild

RCON (Players list + broadcast)

RCON is used internally (inside the Docker network). It is not exposed publicly.

  1. Run the server once so it generates config under ./data.

  2. Edit:

./data/Server/.ini Example: ./data/Server/MyServer.ini

Add:

RCONPort=27015
RCONPassword=12345678
  1. Restart zomboid:
  • make restart
  1. Test RCON manually (players):
  • make players
  1. Broadcast a message:
  • make broadcast MSG="Server restarting in 5 minutes"

About

Dockerized Project Zomboid dedicated server with Playit.gg UDP tunneling, persistent data/mod volumes, and simple Makefile tooling for ops (logs, RCON player list, server messages).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published