forked from mod-playerbots/azerothcore-wotlk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (91 loc) · 3.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (91 loc) · 3.01 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
x-acore-env: &acore-env
AC_DB_HOST: database
AC_DB_PORT: ${AC_DB_PORT:-3306}
AC_DB_USER: ${AC_DB_USER:-acore}
AC_DB_PASSWORD: ${AC_DB_PASSWORD:?set AC_DB_PASSWORD in .env}
AC_AUTH_DATABASE: ${AC_AUTH_DATABASE:-acore_auth}
AC_WORLD_DATABASE: ${AC_WORLD_DATABASE:-acore_world}
AC_CHARACTER_DATABASE: ${AC_CHARACTER_DATABASE:-acore_characters}
AC_PLAYERBOTS_DATABASE: ${AC_PLAYERBOTS_DATABASE:-acore_playerbots}
AC_REALM_ID: ${AC_REALM_ID:-1}
AC_REALM_NAME: ${AC_REALM_NAME:-AzerothCore}
AC_REALM_ADDRESS: ${AC_REALM_ADDRESS:-127.0.0.1}
AC_REALM_LOCAL_ADDRESS: ${AC_REALM_LOCAL_ADDRESS:-127.0.0.1}
AC_REALM_LOCAL_SUBNET_MASK: ${AC_REALM_LOCAL_SUBNET_MASK:-255.255.255.0}
AC_REALM_PORT: ${AC_REALM_PORT:-8085}
AC_FORCE_DATA_IMPORT: ${AC_FORCE_DATA_IMPORT:-0}
x-acore-runtime-volumes: &acore-runtime-volumes
- ${AC_EXTERNAL_INPUT_DIR:-./env/user}:/azerothcore/external:ro
- ${AC_ETC_DIR:-./env/dist/etc}:/azerothcore/env/dist/etc
- ${AC_LOGS_DIR:-./env/dist/logs}:/azerothcore/env/dist/logs
- ${AC_TEMP_DIR:-./env/dist/temp}:/azerothcore/env/dist/temp
- ${AC_DATA_DIR:-./env/dist/data}:/azerothcore/env/dist/data
services:
database:
image: mysql:8.4
restart: unless-stopped
command:
- mysqld
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_HOST: "%"
TZ: ${AC_TIMEZONE:-Asia/Shanghai}
volumes:
- ${AC_MYSQL_DATA_DIR:-./var/mysql}:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -u root --silent"]
interval: 5s
timeout: 5s
retries: 40
data-init:
image: ${WORLD_IMAGE:?set WORLD_IMAGE in .env}
restart: "no"
environment:
<<: *acore-env
volumes:
- ${AC_EXTERNAL_INPUT_DIR:-./env/user}:/azerothcore/external:ro
- ${AC_DATA_DIR:-./env/dist/data}:/azerothcore/env/dist/data
command: ["data-init"]
db-prepare:
image: ${WORLD_IMAGE:?set WORLD_IMAGE in .env}
restart: "no"
environment:
<<: *acore-env
volumes: *acore-runtime-volumes
depends_on:
database:
condition: service_healthy
command: ["db-prepare"]
authserver:
image: ${AUTH_IMAGE:?set AUTH_IMAGE in .env}
restart: unless-stopped
tty: true
stdin_open: true
environment:
<<: *acore-env
volumes: *acore-runtime-volumes
ports:
- ${AC_AUTH_EXTERNAL_PORT:-3724}:3724
depends_on:
db-prepare:
condition: service_completed_successfully
command: ["authserver"]
worldserver:
image: ${WORLD_IMAGE:?set WORLD_IMAGE in .env}
restart: unless-stopped
tty: true
stdin_open: true
environment:
<<: *acore-env
volumes: *acore-runtime-volumes
ports:
- ${AC_WORLD_EXTERNAL_PORT:-8085}:8085
- ${AC_SOAP_EXTERNAL_PORT:-7878}:7878
depends_on:
data-init:
condition: service_completed_successfully
db-prepare:
condition: service_completed_successfully
command: ["worldserver"]