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
This commit is contained in:
Francesco Borzì
2019-01-13 02:38:04 +01:00
committed by GitHub
parent 05d03747be
commit 0e87deb416
12 changed files with 3489 additions and 20 deletions

View File

@@ -8,7 +8,7 @@ This provides a way to launch a container with the AzerothCore authserver runnin
- You need to first build the [AzerothCore Build Image](https://github.com/azerothcore/azerothcore-wotlk/tree/master/docker/build).
- You have to copy the file `docker/authserver/authserver.conf.dist` and rename the copied file to `docker/authserver/authserver.conf`. Then open it and change the values where needed (you may need to change the DB port).
- You have to copy the file `docker/authserver/etc/authserver.conf.dockerdist` and rename the copied file to `docker/authserver/etc/authserver.conf`. Then open it and change the values where needed (you may need to change the DB port).
## Building the container image
@@ -20,6 +20,12 @@ To build the container image you have to be in the **main** folder of your local
## Run the container
```docker run --name azt-authserver --network host -it azerothcore/authserver```
```
docker run --name azt-authserver \
--mount type=bind,source="$(pwd)"/docker/authserver/etc/,target=/azeroth-server/etc \
--mount type=bind,source="$(pwd)"/docker/authserver/logs/,target=/azeroth-server/logs \
--network host \
-it azerothcore/authserver
```
*For more information about the `docker run` command, check the [docker run doc](https://docs.docker.com/engine/reference/run/).*