ported double tracking from TC
This commit is contained in:
9
docker/authserver/Dockerfile
Normal file
9
docker/authserver/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# install the required dependencies to run the authserver
|
||||
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.4.5 libace-dev net-tools;
|
||||
|
||||
HEALTHCHECK --interval=5s --timeout=15s --start-period=30s --retries=3 CMD netstat -lnpt | grep :3724 || exit 1
|
||||
|
||||
# run the authserver located in the directory "docker/authserver/bin" of the host machine
|
||||
CMD ["/azeroth-server/bin/authserver"]
|
||||
39
docker/authserver/README.md
Normal file
39
docker/authserver/README.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# AzerothCore Dockerized Authserver
|
||||
|
||||
This provides a way to manually build and launch a container with the AzerothCore authserver running inside it.
|
||||
|
||||
If you just want to install the whole AzerothCore quickly using Docker Compose, we recommend [this guide](http://www.azerothcore.org/wiki/install-with-Docker).
|
||||
|
||||
## Requirements
|
||||
|
||||
- You need to have [Docker](https://docs.docker.com/install/) installed in your system. You can install it on any operating system.
|
||||
|
||||
- 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
|
||||
|
||||
To build the container image you have to be in the **main** folder of your local AzerothCore sources directory.
|
||||
|
||||
```
|
||||
docker build -t azerothcore/authserver -f docker/authserver/Dockerfile docker/authserver
|
||||
```
|
||||
|
||||
*For more information about the `docker build` command, check the [docker build doc](https://docs.docker.com/engine/reference/commandline/build/).*
|
||||
|
||||
## Run the container
|
||||
|
||||
```
|
||||
docker run --name ac-authserver \
|
||||
--mount type=bind,source="$(pwd)"/docker/authserver/bin/,target=/azeroth-server/bin \
|
||||
--mount type=bind,source="$(pwd)"/docker/authserver/etc/,target=/azeroth-server/etc \
|
||||
--mount type=bind,source="$(pwd)"/docker/authserver/logs/,target=/azeroth-server/logs \
|
||||
-p 127.0.0.1:3724:3724 \
|
||||
--network ac-network \
|
||||
-it azerothcore/authserver
|
||||
```
|
||||
|
||||
*For more information about the `docker run` command, check the [docker run doc](https://docs.docker.com/engine/reference/run/).*
|
||||
0
docker/authserver/etc/.gitkeep
Normal file
0
docker/authserver/etc/.gitkeep
Normal file
19
docker/authserver/etc/authserver.conf.dockerdist
Normal file
19
docker/authserver/etc/authserver.conf.dockerdist
Normal file
@@ -0,0 +1,19 @@
|
||||
###############################################
|
||||
# AzerothCore Auth Server configuration file #
|
||||
###############################################
|
||||
[authserver]
|
||||
|
||||
# Do not change this
|
||||
LogsDir = "/azeroth-server/logs" # will reflect on your host directory: docker/worldserver/logs
|
||||
|
||||
# Change this configuration accordingly with your docker setup
|
||||
# The format is "hostname;port;username;password;database":
|
||||
# - docker containers must be on the same docker network to be able to communicate
|
||||
# - the DB hostname will be the name of the database docker container
|
||||
LoginDatabaseInfo = "ac-database;3306;root;password;acore_auth"
|
||||
|
||||
# Add more configuration overwrites by copying settings from from authserver.conf.dist
|
||||
LogLevel = 3
|
||||
SQLDriverLogFile = "SQLDriver.log"
|
||||
SQLDriverQueryLogging = 1
|
||||
|
||||
Reference in New Issue
Block a user