This repository has been archived by the owner on Jan 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yaml
78 lines (72 loc) · 1.96 KB
/
docker-compose.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
# MIT License
# Copyright (c) 2017-2021 Nicola Worthington <[email protected]>
# https://github.com/neechbear/trinitycore
version: "3.4"
volumes:
db-data:
services:
mysql:
container_name: mysql
image: "mariadb:latest"
environment:
MYSQL_ROOT_PASSWORD: trinity
MYSQL_USER: trinity
MYSQL_PASSWORD: trinity
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1"]
timeout: 20s
retries: 10
start_period: 20s
ports:
- "3306:3306"
volumes:
- db-data:/var/lib/mysql
- ./sql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
authserver:
container_name: authserver
image: nicolaw/trinitycore:3.3.5-sql
command: ["/bin/sh", "-c", "sleep 10; wait-for-it.sh mysql:3306 --timeout=0 --strict --child; authserver -c /etc/authserver.conf"]
depends_on:
- mysql
- worldserver
healthcheck:
test: ["CMD", "nc", "localhost", "3724"]
timeout: 20s
retries: 10
start_period: 20s
ports:
- "3724:3724"
- "1119:1119"
volumes:
- ./authserver.conf:/etc/authserver.conf
- ./sql/custom:/src/sql/custom
worldserver:
container_name: worldserver
image: nicolaw/trinitycore:3.3.5-sql
command: ["/bin/sh", "-c", "sleep 10; wait-for-it.sh mysql:3306 --timeout=0 --strict --child; sleep 5; worldserver -c /etc/worldserver.conf"]
depends_on:
- mysql
environment:
# These 3 variables are used by the tcadmin utility command.
# See https://github.com/neechbear/tcadmin/.
TCDBHOST: mysql
TCSOAPUSER: trinity
TCSOAPPASS: trinity
healthcheck:
test: ["CMD", "nc", "localhost", "8085"]
timeout: 20s
retries: 10
start_period: 20s
ports:
- "8085:8085"
- "8086:8086"
- "8087:8087"
- "8088:8088"
- "8089:8089"
- "3443:3443"
- "7878:7878"
volumes:
- ./worldserver.conf:/etc/worldserver.conf
- ./sql/custom:/src/sql/custom
- ./mapdata:/mapdata