Skip to content

Commit

Permalink
Add README and update Docker Compose configuration for Project Zomboi…
Browse files Browse the repository at this point in the history
…d server
  • Loading branch information
m4tt72 committed Dec 31, 2024
1 parent 8e1b78b commit 659a19b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Project Zomboid Server - Docker

This is a Docker image for Project Zomboid server.

## Usage

### Docker

```bash
docker pull ghcr.io/m4tt72/project-zomboid-server:main

mkdir -p /srv/zomboid

cd /srv/zomboid

docker run -it -v `pwd`:/home/zombie/Zomboid ghcr.io/m4tt72/project-zomboid-server:main bash start-server.sh
```

Set the server password then run the compose file.

```
docker compose up -d
```
11 changes: 3 additions & 8 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ volumes:

services:
project-zomboid:
build:
context: .
dockerfile: Dockerfile
image: ghcr.io/m4tt72/project-zomboid-server:main
container_name: project-zomboid
restart: unless-stopped
user: 1000:1000
volumes:
- data:/home/zombie/Zomboid
ports:
- 16261:16261/udp
- 16262:16262/udp
# comment this after tunning `docker compose exec project-zomboid bash start-server.sh` and setting a password.
# tty: true
# stdin_open: true
# command: tail -f /dev/null
- 16262:16262/udp

0 comments on commit 659a19b

Please sign in to comment.