Files
azerothcore-wotlk/docker/worldserver/README.md
Francesco Borzì 0e87deb416 Several improvements to Docker:
- ability to reload configuration files without building again the images
- faster images building
- corrected a mistake
- logs are saved to the main host
2019-01-13 02:38:04 +01:00

1.9 KiB

AzerothCore Dockerized Worldserver

This provides a way to launch a container with the AzerothCore authserver running inside it.

Requirements

  • You need to have Docker installed in your system. You can install it on any operating system.

  • You need to first build the AzerothCore Build Image.

  • You have to copy the file docker/worldserver/worldserver.conf.dockerdist and rename the copied file to docker/worldserver/worldserver.conf. Then open it and change the values where needed (you may need to change the DB port).

  • You need to have the data files somewhere in your system. If you don't have them yet, check the step "Download the data files" from the installation guide.

Building the container image

To build the container image you have to be in the main folder of your local AzerothCore sources directory.

docker build -t azerothcore/worldserver -f docker/worldserver/Dockerfile docker/worldserver

For more information about the docker build command, check the docker build doc.

Run the container

Replace /path/to/your/data with the path of where your data folder is.

docker run --name azt-worldserver \
    --mount type=bind,source=/mnt/70DD9E0635B3A813/azeroth-server/data,target=/azeroth-server/data \
    --mount type=bind,source="$(pwd)"/docker/worldserver/etc/,target=/azeroth-server/etc \
    --mount type=bind,source="$(pwd)"/docker/worldserver/logs/,target=/azeroth-server/logs \
    --network host \
    -it azerothcore/worldserver

For more information about the docker run command, check the docker run doc.