Hi, just made an account to show you all how I've set up my pvpgn + d2gs instance on my (linux) server:
I've used the following resources (links are missing dots):
github com/espenmjos/pvpgn for pvpgn, d2dbs and d2cs
hub docker com/r/thomasesr/d2gs for d2gs (with wine)
(you'll also need to have docker and docker-compose already installed, look it up how to do it for your linux distro)
create a new folder for your setup and go into it
run: git clone https://github.com/espenmjos/pvpgn.git
build the docker image: docker build -t pvpgn-pro:1.99.7.2.1 ./pvpgn
copy the config files by running the following
docker run --rm -v $PWD/etc:/usr/local/pvpgn/etc pvpgn-pro:1.99.7.2.1 cp -r /pvpgn/etc/pvpgn/ /usr/local/pvpgn/etc/
docker run --rm -v $PWD/var:/usr/local/pvpgn/var pvpgn-pro:1.99.7.2.1 cp -r /pvpgn/var/pvpgn/ /usr/local/pvpgn/var/
create a folder named "Diablo2" and add the following to it:
Diablo 2 Game Files (MPQs)
D2GS and D2GE files
d2gs.reg file with your configuration
d2server.ini file with server configuration
d2gs.log file for logging
edit your configs according to the pvpgn pro d2gs installation instructions: pvpgn pro/d2gs_installation.html
create docker-compose.yml and add the code at the end of this post
run: docker-compose up -d
check if the servers are running: docker-compose ps
read the logs: docker-compose logs
version: '2.4'
services:
d2cs:
container_name: d2cs
build: ./pvpgn
image: pvpgn-pro:1.99.7.2.1
volumes:
- $PWD/etc:/usr/local/pvpgn/etc
- $PWD/var:/usr/local/pvpgn/var
network_mode: host
# ports:
# - "6113:6113"
# - "6113:6113/udp"
entrypoint: ["/usr/local/pvpgn/sbin/d2cs","-f"]
restart: unless-stopped
d2dbs:
container_name: d2dbs
build: ./pvpgn
image: pvpgn-pro:1.99.7.2.1
volumes:
- $PWD/etc:/usr/local/pvpgn/etc
- $PWD/var:/usr/local/pvpgn/var
network_mode: host
# ports:
# - "6114:6114"
# - "6114:6114/udp"
entrypoint: ["/usr/local/pvpgn/sbin/d2dbs","-f"]
restart: unless-stopped
pvpgn:
container_name: pvpgn
build: ./pvpgn
image: pvpgn-pro:1.99.7.2.1
volumes:
- $PWD/etc:/usr/local/pvpgn/etc
- $PWD/var:/usr/local/pvpgn/var
network_mode: host
# ports:
# - "6112:6112"
# - "6112:6112/udp"
entrypoint: ["/usr/local/pvpgn/sbin/bnetd","-f"]
restart: unless-stopped
d2gs:
container_name: d2gs
volumes:
- '$PWD/Diablo2:/D2GS/drive_c/Diablo2'
# ports:
# - '4000:4000'
network_mode: host
image: 'thomasesr/d2gs:latest'
restart: unless-stopped