Skip to content

Docker Compose setup for running the server on Linux via Wine #21

@MisterCoderman

Description

@MisterCoderman

I decided to share my Docker Compose file for launching the server on Linux servers via Wine — it takes about 5 minutes to set up.
Each user needs to specify their own path in the volumes section; everything else is suitable for everyone.

CPU limits are optional and can be removed if desired (cpu_shares: 2, cpus: 0.25).
I set these limits because the Wine-based service tends to consume an unreasonably high amount of CPU, but with the limits in place it works perfectly even with 50+ players.

Project author, please add this to the manual.
Players running Linux servers can use this server setup without any issues.

Tested on a Debian server and TrueNAS SCALE.

services:
zone-games-server:
command: |-
sh -c "
mkdir -p /tmp/runtime-dir &&
chmod 700 /tmp/runtime-dir &&
cd /data &&
echo '[start] Launching InternetGamesServer.exe (hard limited)' &&
nice -n 19 ionice -c3 wine InternetGamesServer.exe >/dev/null 2>&1
"
container_name: zone-games-server
cpu_shares: 2
cpus: 0.25
environment:
- WINEDEBUG=-all
- XDG_RUNTIME_DIR=/tmp/runtime-dir
image: scottyhardy/docker-wine:latest
ports:
- 28805:28805/tcp
restart: unless-stopped
volumes:
- /mnt/Storage/Dockers/zone-games:/data:rw
working_dir: /data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions