-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 1.09 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '2'
services:
trinitycore:
build: .
volumes:
- ./log:/opt/trinitycore/log
restart: always
working_dir: /opt/trinitycore/bin
command: bash /scripts/infiniteLoop.sh
bnetserver:
extends: trinitycore
links:
- db
volumes:
- ./etc/bnetserver.conf:/opt/trinitycore/etc/bnetserver.conf
ports:
- "1119:1119"
- "8081:8081"
command: ./bnetserver
worldserver:
extends: trinitycore
links:
- db
volumes:
# mount Wow installation to /opt/trinitycore/data in docker-compose.override.yml
- ./etc/worldserver.conf:/opt/trinitycore/etc/worldserver.conf
ports:
- "8085:8085"
- "8086:8086"
command: ./worldserver
db:
image: mysql
restart: always
volumes:
- ./mount/mysql:/var/lib/mysql
- ./mount/initdb:/docker-entrypoint-initdb.d
expose:
- "3306"
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=1