Giter VIP home page Giter VIP logo

projectzomboid-server's Introduction

Project Zomboid Server

Volumes

  • /data/server-file Project Zomboid server file
  • /data/config Database and configuration file

Environment varibles

Project Zomboid Server

  • SERVER_NAME Name of your server (for db & ini file). Warning: don't use special characters or spaces.
  • SERVER_PASSWORD Password of your server used to connect to it
  • SERVER_ADMIN_PASSWORD Admin password on your server (default: pzadmin)
  • SERVER_PORT Game server port (default: 16261)
  • SERVER_UDP_PORT Game server UDP port (default: 16262)
  • SERVER_BRANCH Name of the beta branch
  • SERVER_PUBLIC Public server (default: false)
  • SERVER_PUBLIC_NAME Public name of your server
  • SERVER_PUBLIC_DESC Public description of your server
  • SERVER_MAX_PLAYER Maximum number of players on your server (default: 16)

Mods

  • MOD_NAMES Workshop Mod Names
  • MOD_WORKSHOP_IDS Workshop Mod IDs

RCON

  • RCON_PORT RCON port (default: 27015)
  • RCON_PASSWORD RCON password

System User

  • UID User ID (default: 1000)
  • GID Group ID (default: 1000)

Expose

  • 27015 RCON
  • 16261 Game server (udp)
  • 16262 Game server (udp)

Docker Compose

Example of docker compose file

version: "3.8"

services:
  project-zomboid:
    container_name: pzserver
    image: pepecitron/projectzomboid-server
    restart: unless-stopped
    environment:
      SERVER_ADMIN_PASSWORD: "pzadmin"
      SERVER_PASSWORD: "secretpassword"
    ports:
      - "16261:16261/udp"
      - "16262:16262/udp"
    volumes:
      - ./data/server-file:/data/server-file
      - ./data/config:/data/config

Help

Server Configuration

The servers configuration can be set via the servers <SERVER_NAME>.ini and <SERVER_NAME>_SandboxVars.lua, which are located at the path of the mounted config volume. The server needs to be restarted for the changes to take effect. Gameserver updates are applied automatically by restarting the container.

Mods

Mods can be added by modifying MOD_NAMES and MOD_WORKSHOP_IDS environment variables.

...
    environment:
      MOD_NAMES: "RainWash;EasyConfigChucked;ExpandedHelicopterEvents"
      MOD_WORKSHOP_IDS: "2657661246;2529746725;2458631365"
...

Newly added mods and updates for existing mods are applied automatically by restarting the container.

Multiple Servers

To avoid problems during server updates, different volumes should be mounted. The new public gameserver port (16261, 16262, etc.) must be used ingame to connect to the new server.

version: "3.8"

services:
  server-1:
    container_name: pzserver-server-1
    image: pepecitron/projectzomboid-server
    restart: unless-stopped
    environment:
      SERVER_NAME: "server-1"
    ports:
      - "16261:16261/udp"
      - "16262:16262/udp"
    volumes:
      - ./data/server-file-server-1:/data/server-file
      - ./data/config:/data/config
  server-2:
    container_name: pzserver-server-2
    image: pepecitron/projectzomboid-server
    restart: unless-stopped
    environment:
      SERVER_NAME: "server-2"
    ports:
      - "16263:16261/udp"
      - "16264:16262/udp"
    volumes:
      - ./data/server-file-server-2:/data/server-file
      - ./data/config:/data/config

projectzomboid-server's People

Contributors

pepecitron avatar diyagi avatar rykugur avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.