Docker: fix connectivity issues on Mac & Windows (#1275)

This commit is contained in:
Francesco Borzì
2019-01-13 15:32:57 +01:00
committed by GitHub
parent 93bccb9b85
commit 3b281e27ce
6 changed files with 53 additions and 29 deletions

View File

@@ -8,6 +8,8 @@ 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).
- If you haven't created a docker network yet, create it by simply using `docker network create ac-network`.
- 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
@@ -21,10 +23,11 @@ To build the container image you have to be in the **main** folder of your local
## Run the container
```
docker run --name azt-authserver \
docker run --name ac-auth-container \
--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 \
-p 127.0.0.1:3724:3724 \
--network ac-network \
-it azerothcore/authserver
```