One tap creation of a docker image containing all the necessary components required to run a Diablo 2 private server
Used to host a Diablo II server at nanibot.net
The created docker image will have the following applications managed by Supervisor:
- bnetd
- d2cs
- d2dbs
- d2gs (Emulated using Wine)
- Hashicorp Packer
- Docker
- Docker
- Docker-compose (required on the machine which will host the server)
- Modify the variables in
variables.auto.pkrvars.hcl
- Run
packer build .
to create the docker image. This step takes around 30 minutes on a decent quad-core. Build time is long because Wine is compiled from source. - Copy the contents under the
generated
folder to your VPS or to the location you want to host the server from. - Load the docker image from the tar file by using
sudo docker load -i <image-name>
- From the location containing the
data
folder and thedocker-compose.yml
file, runsudo docker-compose up -d
For a running server, the following log files will be present under data/var/
:
- bnetd.log
- d2cs.log
- d2dbs-gs.log
- d2dbs.log
- d2gs.log - This log file will be empty as d2gs logs directly to the folder where D2GS.exe is present (i.e. inside the docker container)