Run your own Dark and Light game server effortlessly with this Docker image.
455
This Docker image is designed to run a dedicated server for the game Dark and Light. It's based on scottyhardy/docker-wine to enable the running of Windows applications. The image uses a bash script to handle startup, server installation, and setting up environment variables.
| Variable | Default | Description |
|---|---|---|
PUID | 1001 | The UID to run server as |
PGID | 1001 | The GID to run server as |
MAP_NAME | The-Sacred-Path | The map name (The-Shard / The-Sacred-Path) |
SESSION_NAME | DNL | The session name for the server |
SERVER_ADMIN_PASSWORD | MyPassword | The admin password for the server |
MULTI_HOME | 0.0.0.0 | Server IP |
DNL_PORT | 7777 | The game port for the server |
QUERY_PORT | 27015 | The query port for the server |
MAX_PLAYERS | 127 | Max allowed players |
CLUSTER_ID | cluster1 | The Cluster ID for the server |
PUID and PGID: These are important for setting the permissions of the folders that Docker will use. Make sure to set these values based on your host machine's user and group IDs.
Folder Creation: Before starting the Docker Compose file, make sure to manually create any folders that you'll be using for volumes, especially if you're overriding the default folders.
| Port | Description |
|---|---|
7777/tcp | Game port |
7777/udp | Game port |
27015/tcp | Query port |
27015/udp | Query port |
| Volume Path | Description |
|---|---|
./Saved | Server saved files |
./DNL | Game files |
./DNL Dedicated Server | Server config files |
./Cluster | Cluster files |
Create a docker-compose.yml file and populate it with the service definition.
version: '2.4'
services:
darkandlight:
build: .
image: acekorneya/darkandlight_server:latest
container_name: dnl_server
restart: unless-stopped
environment:
- PUID=1001
- PGID=1001
- MAP_NAME=The-Sacred-Path
- SESSION_NAME=DNL
- SERVER_ADMIN_PASSWORD=MyPassword
- MULTI_HOME=0.0.0.0
- DNL_PORT=7777
- QUERY_PORT=27015
- MAX_PLAYERS=127
- CLUSTER_ID=cluster1
ports:
- "7777:7777/tcp"
- "7777:7777/udp"
- "27015:27015/tcp"
- "27015:27015/udp"
volumes:
- "./Saved:/usr/games/.wine/drive_c/POK/Steam/steamapps/common/DNL Dedicated Server/DNL/Saved"
- "./DNL:/usr/games/.wine/drive_c/POK/Steam/steamapps/common/DNL Dedicated Server/DNL"
- "./DNL Dedicated Server:/usr/games/.wine/drive_c/POK/Steam/steamapps/common/DNL Dedicated Server"
- "./Cluster:/usr/games/.wine/drive_c/POK/Steam/steamapps/common/DNL"
deploy:
resources:
limits:
cpus: '4'
memory: 12G
reservations:
cpus: '0.5'
memory: 10G
If you're planning to change the volume directories, create those directories manually before starting the service.
Then, run the following command to start the server:
docker-compose up -d
Advanced Config For custom settings, edit GameUserSettings.ini in Saved/Config/WindowsServer. Modify and restart the container.
Sometimes when the server is starting up it will hang for some reason all just need to restart the docker compose and should fix it.
Content type
Image
Digest
sha256:5bb2ec34d…
Size
1.1 GB
Last updated
almost 3 years ago
docker pull acekorneya/darkandlight_server