forked from sebyx07/rails-on-azerothcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
178 lines (171 loc) · 4.52 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
services:
rails:
container_name: roa_rails
working_dir: /rails
build:
context: .
args:
USER_ID: ${DOCKER_USER_ID:-1000}
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
DOCKER_USER: ${DOCKER_USER:-acore}
ports:
- "3000:3000"
environment:
- redis_url=redis://redis:6379
- LD_PRELOAD=/azerothcore/build/src/server/shared/libshared.so
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- .:/rails
- bundle-cache:/usr/local/bundle
- ./RoA/build:/azerothcore-build
- ./ac-wotlk:/azerothcore
- ./wow-client:/wow-client
networks:
- app-network
command: rails s -b 0.0.0.0
db:
container_name: roa_db
image: mysql:8.3
ports:
- "3306:3306"
volumes:
- type: volume
source: mysql_data
target: /var/lib/mysql
networks:
- app-network
- ac-network
command: --innodb-use-native-aio=1
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
healthcheck:
test: "/usr/bin/mysql --user=root --execute \"SHOW DATABASES;\""
interval: 5s
timeout: 10s
retries: 40
redis:
image: eqalpha/keydb:latest
container_name: roa_redis
ports:
- "6379"
volumes:
- keydb_data:/data
networks:
- app-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
compiler:
container_name: roa_compiler
build:
context: .
args:
USER_ID: ${DOCKER_USER_ID:-1000}
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
DOCKER_USER: ${DOCKER_USER:-acore}
volumes:
- ./ac-wotlk:/azerothcore
- ./RoA/build:/azerothcore-build
- ./RoA/mod-ruby:/azerothcore/modules/mod-ruby
- bundle-cache:/usr/local/bundle
- ./wow-client:/wow-client
command: compiler
world:
container_name: roa_world
build:
context: .
args:
USER_ID: ${DOCKER_USER_ID:-1000}
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
DOCKER_USER: ${DOCKER_USER:-acore}
networks:
- ac-network
stdin_open: true
tty: true
environment:
AC_DATA_DIR: "/azerothcore/env/dist/client-data"
AC_LOGS_DIR: "/azerothcore/env/dist/logs"
ports:
- ${DOCKER_WORLD_EXTERNAL_PORT:-8085}:8085
- ${DOCKER_SOAP_EXTERNAL_PORT:-7878}:7878
volumes:
- .:/rails
- bundle-cache:/usr/local/bundle
- ./ac-wotlk:/azerothcore
- ./RoA/build:/azerothcore-build
- ${DOCKER_VOL_ETC:-./ac-wotlk/env/dist/etc}:/azerothcore/env/dist/etc
- ${DOCKER_VOL_LOGS:-./ac-wotlk/env/dist/logs}:/azerothcore/env/dist/logs:delegated
- ./wow-client:/wow-client
depends_on:
db:
condition: service_healthy
compiler:
condition: service_started
auth:
condition: service_started
command: worldserver
console:
deploy:
replicas: 0
container_name: roa_console
build:
context: .
args:
USER_ID: ${DOCKER_USER_ID:-1000}
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
DOCKER_USER: ${DOCKER_USER:-acore}
networks:
- ac-network
stdin_open: true
tty: true
environment:
AC_DATA_DIR: "/azerothcore/env/dist/client-data"
AC_LOGS_DIR: "/azerothcore/env/dist/logs"
depends_on:
db:
condition: service_healthy
volumes:
- .:/rails
- bundle-cache:/usr/local/bundle
- ./ac-wotlk:/azerothcore
- ./RoA/build:/azerothcore-build
- ${DOCKER_VOL_ETC:-./ac-wotlk/env/dist/etc}:/azerothcore/env/dist/etc
- ${DOCKER_VOL_LOGS:-./ac-wotlk/env/dist/logs}:/azerothcore/env/dist/logs:delegated
auth:
container_name: roa_auth
build:
context: .
args:
USER_ID: ${DOCKER_USER_ID:-1000}
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
DOCKER_USER: ${DOCKER_USER:-acore}
networks:
- ac-network
tty: true
environment:
AC_LOGS_DIR: "/azerothcore/env/dist/logs"
AC_TEMP_DIR: "/azerothcore/env/dist/temp"
volumes:
- ./ac-wotlk:/azerothcore
- ./RoA/build:/azerothcore-build
- ${DOCKER_VOL_ETC:-./ac-wotlk/env/dist/etc}:/azerothcore/env/dist/etc
- ${DOCKER_VOL_LOGS:-./ac-wotlk/env/dist/logs}:/azerothcore/env/dist/logs:delegated
ports:
- ${DOCKER_AUTH_EXTERNAL_PORT:-3724}:3724
depends_on:
db:
condition: service_healthy
compiler:
condition: service_started
command: authserver
volumes:
mysql_data:
keydb_data:
bundle-cache:
networks:
app-network:
ac-network: