-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.61 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
mariadb:
image: mariadb:11.2.3
restart: unless-stopped
container_name: mariadb
environment:
MARIADB_ROOT_PASSWORD: SecretPassword # IMPORTANT should be set the same as the MARIADB_ROOT_PASSWORD environment variable for the cmangos-in-docker service
volumes:
- mariadb_data:/var/lib/mysql
ports:
- "3306:3306"
healthcheck:
interval: 30s
retries: 3
test:
[
"CMD",
"healthcheck.sh",
"--su-mysql",
"--connect",
"--innodb_initialized"
]
timeout: 30s
cmangos-in-docker:
image: cmangos-in-docker:latest
container_name: cmangos-in-docker
stdin_open: true
tty: true
environment:
MARIADB_ROOT_PASSWORD: SecretPassword # IMPORTANT should be set the same as the MARIADB_ROOT_PASSWORD environment variable for the mariadb service
MARIADB_MANGOS_USER_PASSWORD: MangosSecretPassword
IP_ADDRESS: <IP_ADDRESS_OF_DOCKER_HOST> # IP Address of your docker host or your WAN address if you want to expose this server
volumes:
- <PATH_TO_YOUR_CLIENT_DATA>:/home/mangos/Client-Data # <PATH_TO_YOUR_CLIENT_DATA> should be the local path to your WoW client data
- cmangos_data:/home/mangos
depends_on:
mariadb:
condition: service_healthy
ports:
- "8085:8085"
- "3724:3724"
healthcheck:
interval: 10s
retries: 3
test:
[
"CMD",
"healthcheck.sh"
]
timeout: 30s
start_period: 15s
volumes:
mariadb_data:
name: mariadb_data
cmangos_data:
name: cmangos_data