Sign inSign up

acekorneya/darkandlight_server

By acekorneya

Updated almost 3 years ago

Run your own Dark and Light game server effortlessly with this Docker image.

Image
0

455

acekorneya/darkandlight_server repository overview

Documentation for Dark and Light Dedicated Server Docker Image
Docker Image Details

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.

Repository: [Your GitHub Repository]

Environment Variables
VariableDefaultDescription
PUID1001The UID to run server as
PGID1001The GID to run server as
MAP_NAMEThe-Sacred-PathThe map name (The-Shard / The-Sacred-Path)
SESSION_NAMEDNLThe session name for the server
SERVER_ADMIN_PASSWORDMyPasswordThe admin password for the server
MULTI_HOME0.0.0.0Server IP
DNL_PORT7777The game port for the server
QUERY_PORT27015The query port for the server
MAX_PLAYERS127Max allowed players
CLUSTER_IDcluster1The Cluster ID for the server

Additional Information
  • 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.


Ports
PortDescription
7777/tcpGame port
7777/udpGame port
27015/tcpQuery port
27015/udpQuery port

Volumes
Volume PathDescription
./SavedServer saved files
./DNLGame files
./DNL Dedicated ServerServer config files
./ClusterCluster files

  • CPU: min 2 CPUs
  • RAM: > 8 GB
  • Disk: ~20 GB

Usage
Docker Compose

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

Additional server settings

Advanced Config For custom settings, edit GameUserSettings.ini in Saved/Config/WindowsServer. Modify and restart the container.


Comments

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.


Tag summary

Content type

Image

Digest

sha256:5bb2ec34d

Size

1.1 GB

Last updated

almost 3 years ago

docker pull acekorneya/darkandlight_server