mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-03 11:03:47 +00:00
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:
@@ -1,11 +1,7 @@
|
||||
FROM ubuntu:bionic
|
||||
|
||||
COPY --from=azerothcore/build:latest /azeroth-server /azeroth-server
|
||||
COPY worldserver.conf.dist /azeroth-server/etc/worldserver.conf
|
||||
COPY worldserver.conf /azeroth-server/etc/worldserver.conf
|
||||
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.* libace-dev libreadline-dev;
|
||||
|
||||
RUN apt update && apt install -y libmysqlclient-dev libssl-dev libace-6.* libace-dev libreadline-dev; \
|
||||
rm /azeroth-server/etc/authserver.conf.dist; \
|
||||
mkdir /azeroth-server/logs;
|
||||
COPY --from=azerothcore/build:latest /azeroth-server/bin /azeroth-server/bin
|
||||
|
||||
CMD ["/azeroth-server/bin/worldserver"]
|
||||
|
||||
@@ -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/worldserver/worldserver.conf.dist` 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 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](https://github.com/AzerothCore/azerothcore-wotlk/wiki/Installation#5-download-the-data-files).
|
||||
|
||||
@@ -24,6 +24,13 @@ To build the container image you have to be in the **main** folder of your local
|
||||
|
||||
Replace `/path/to/your/data` with the path of where your data folder is.
|
||||
|
||||
```docker run --name azt-worldserver --mount type=bind,source=/path/to/your/data,target=/azeroth-server/data --network host -it azerothcore/worldserver```
|
||||
```
|
||||
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](https://docs.docker.com/engine/reference/run/).*
|
||||
|
||||
0
docker/worldserver/etc/.gitkeep
Normal file
0
docker/worldserver/etc/.gitkeep
Normal file
3191
docker/worldserver/etc/worldserver.conf.dist
Normal file
3191
docker/worldserver/etc/worldserver.conf.dist
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
||||
[worldserver]
|
||||
|
||||
# Do not change those
|
||||
LogsDir = "/azeroth-server/etc/logs"
|
||||
LogsDir = "/azeroth-server/logs"
|
||||
DataDir = "/azeroth-server/data"
|
||||
|
||||
# Change those configuration accordingly with your setup
|
||||
0
docker/worldserver/logs/.gitkeep
Normal file
0
docker/worldserver/logs/.gitkeep
Normal file
Reference in New Issue
Block a user