A docker image to host your own private Vanilla World of Warcraft server over a Zerotier network.
Firsty get youself a free Zerotier account as this server will be hosted over a Zerotier network. Here is a good primer on Zerotier to show what we are aiming for. Once you have your account, set up a new Zerotier network and note the network id.
git clone https://github.com/NickTyrer/azeroth_docker.git && cd azeroth_docker && \
docker build -t azeroth_image .
With this config all files will be hosted within the container (suitable for most users)
docker run -d \
-e ZT_NET=<network id> \
--cap-add=NET_ADMIN \
--cap-add=SYS_ADMIN \
--device /dev/net/tun \
--name=<container name> \
azeroth_image
With this config the database files will be created on the host
docker run -d \
-e ZT_NET=<network id> \
-v <local path for db files>:/var/lib/mysql \
-v <local path for config files>:/opt/azeroth/etc \
-v <local path for honor files>:/opt/azeroth/honor \
--cap-add=NET_ADMIN \
--cap-add=SYS_ADMIN \
--device /dev/net/tun \
--name=<container name> \
nicktyrer/azeroth_docker
Once the container is running head back to the config page for your Zeroier network and authorise the container access to the network and then note down the containers IP address (In the managed IP's column).
Attach to the container
docker exec -ti <container name> /bin/bash
Attach to the tmux session
sudo -u admin tmux a -t azeroth
account create <username> <password>
account set gmlevel <username> 6
detach from tmux using ctrl+b then d
then exit
to exit the container
To acces the MaNGOS console just connect via SSH using the Zerotier IP address
People wanting to connect to the server will need three things:
- Zerotier client with access to the Zerotier network
- World of Warcraft 1.12.1 client (use one of the links here)
- Edit realmlist.wtf in the Warcraft World of Warcraft 1.12.1 client to include
set realmlist <zerotier container ip>
Take a look here for how to restrict access to your container using Zerotiers network flow rules.
Thats it - here are all of the gm commands to administer your server.