-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathdocker-compose.yml
236 lines (231 loc) · 8.37 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
version: '3.7'
services:
db:
image: postgres:12.2-alpine
restart: always
env_file:
- .env
networks:
- wand
ports:
- 5432:5432
volumes:
- ./houdini/houdini.sql:/docker-entrypoint-initdb.d/houdini.sql
- ./.data:/var/lib/postgresql/data
redis:
image: redis:5.0.9-alpine
restart: always
networks:
- wand
ports:
- 6379
web:
build: ./web
restart: always
env_file:
- .env
ports:
- ${WEB_PORT}:80
networks:
- wand
links:
- dash:dash
volumes:
- ./www:/usr/share/nginx/html
- ./legacy-media:/usr/share/nginx/legacy
- ./vanilla-media:/usr/share/nginx/vanilla
- ./servers.xml:/t/servers.xml
- ./templates/sites/legacy.conf.template:/etc/nginx/conf.d/legacy.conf.template
- ./templates/sites/vanilla.conf.template:/etc/nginx/conf.d/vanilla.conf.template
- ./templates/legacy-media/play/index.html.template:/t/legacy/play/index.html.template
- ./templates/legacy-media/play/es/index.html.template:/t/legacy/play/es/index.html.template
- ./templates/legacy-media/play/fr/index.html.template:/t/legacy/play/fr/index.html.template
- ./templates/legacy-media/play/pt/index.html.template:/t/legacy/play/pt/index.html.template
- ./templates/vanilla-media/play/index.html.template:/t/vanilla/play/index.html.template
- ./templates/vanilla-media/play/es/index.html.template:/t/vanilla/play/es/index.html.template
- ./templates/vanilla-media/play/fr/index.html.template:/t/vanilla/play/fr/index.html.template
- ./templates/vanilla-media/play/pt/index.html.template:/t/vanilla/play/pt/index.html.template
- ./templates/vanilla-media/media/play/web_service/environment_data.xml.template:/t/vanilla/media/play/web_service/environment_data.xml.template
command: ["dockerize",
"-template", "/etc/nginx/conf.d/legacy.conf.template:/etc/nginx/conf.d/legacy.conf",
"-template", "/etc/nginx/conf.d/vanilla.conf.template:/etc/nginx/conf.d/vanilla.conf",
"-template", "/t/servers.xml:/usr/share/nginx/legacy/media/servers.xml",
"-template", "/t/servers.xml:/usr/share/nginx/vanilla/play/servers.xml",
"-template", "/t/legacy/play/index.html.template:/usr/share/nginx/legacy/play/index.html",
"-template", "/t/legacy/play/index.html.template:/usr/share/nginx/legacy/play/en/index.html",
"-template", "/t/legacy/play/es/index.html.template:/usr/share/nginx/legacy/play/es/index.html",
"-template", "/t/legacy/play/fr/index.html.template:/usr/share/nginx/legacy/play/fr/index.html",
"-template", "/t/legacy/play/pt/index.html.template:/usr/share/nginx/legacy/play/pt/index.html",
"-template", "/t/vanilla/play/index.html.template:/usr/share/nginx/vanilla/play/index.html",
"-template", "/t/vanilla/play/index.html.template:/usr/share/nginx/vanilla/play/en/index.html",
"-template", "/t/vanilla/play/es/index.html.template:/usr/share/nginx/vanilla/play/es/index.html",
"-template", "/t/vanilla/play/fr/index.html.template:/usr/share/nginx/vanilla/play/fr/index.html",
"-template", "/t/vanilla/play/pt/index.html.template:/usr/share/nginx/vanilla/play/pt/index.html",
"-template", "/t/vanilla/media/play/web_service/environment_data.xml.template:/usr/share/nginx/vanilla/media/play/web_service/environment_data.xml",
"nginx", "-g", "daemon off;"]
houdini_login:
build: ./houdini
restart: always
env_file:
- .env
networks:
- wand
ports:
- ${GAME_LOGIN_PORT}:${GAME_LOGIN_PORT}
volumes:
- ./houdini:/usr/src/houdini
- ./wait-for-postgres.sh:/usr/src/houdini/wait-for-postgres.sh
depends_on:
- db
- redis
links:
- db:db
- redis:redis
entrypoint: ["dockerize", "-wait", "tcp://redis:6379", "./wait-for-postgres.sh", "db", "python", "bootstrap.py", "login"]
command: ["--port", "${GAME_LOGIN_PORT}",
"--redis-address", "redis",
"--database-address", "db",
"--database-user", "${POSTGRES_USER}",
"--database-name", "${POSTGRES_USER}",
"--database-password", "${POSTGRES_PASSWORD}"]
houdini_blizzard:
build: ./houdini
restart: always
networks:
- wand
ports:
- 9875:9875
volumes:
- ./houdini:/usr/src/houdini
depends_on:
- houdini_login
links:
- db:db
- redis:redis
- houdini_login:login
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}", "python", "bootstrap.py", "world"]
command: ["-id", "3100", "--name", "blizzard", "--port", "9875", "--lang", "en",
"--redis-address", "redis",
"--database-address", "db",
"--database-user", "${POSTGRES_USER}",
"--database-name", "${POSTGRES_USER}",
"--database-password", "${POSTGRES_PASSWORD}"]
houdini_glaciar:
build: ./houdini
restart: always
networks:
- wand
ports:
- 9876:9876
volumes:
- ./houdini:/usr/src/houdini
depends_on:
- houdini_login
links:
- db:db
- redis:redis
- houdini_login:login
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}", "python", "bootstrap.py", "world"]
command: ["-id", "3101", "--name", "glaciar", "--port", "9876", "--lang", "es",
"--redis-address", "redis",
"--database-address", "db",
"--database-user", "${POSTGRES_USER}",
"--database-name", "${POSTGRES_USER}",
"--database-password", "${POSTGRES_PASSWORD}"]
houdini_avalanche:
build: ./houdini
restart: always
networks:
- wand
ports:
- 9877:9877
volumes:
- ./houdini:/usr/src/houdini
depends_on:
- houdini_login
links:
- db:db
- redis:redis
- houdini_login:login
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}", "python", "bootstrap.py", "world"]
command: ["-id", "3102", "--name", "avalanche", "--port", "9877", "--lang", "pt",
"--redis-address", "redis",
"--database-address", "db",
"--database-user", "${POSTGRES_USER}",
"--database-name", "${POSTGRES_USER}",
"--database-password", "${POSTGRES_PASSWORD}"]
houdini_yeti:
build: ./houdini
restart: always
networks:
- wand
ports:
- 9878:9878
volumes:
- ./houdini:/usr/src/houdini
depends_on:
- houdini_login
links:
- db:db
- redis:redis
- houdini_login:login
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}", "python", "bootstrap.py", "world"]
command: ["-id", "3103", "--name", "yeti", "--port", "9878", "--lang", "fr",
"--redis-address", "redis",
"--database-address", "db",
"--database-user", "${POSTGRES_USER}",
"--database-name", "${POSTGRES_USER}",
"--database-password", "${POSTGRES_PASSWORD}"]
dash:
build: ./dash
restart: always
networks:
- wand
env_file:
- .env
ports:
- 3000
volumes:
- ./dash:/usr/src/dash
- ./vanilla-media/media/avatar/paper:/usr/src/dash/items
- ./templates/dash/config.py.template:/usr/src/dash/config.py.template
depends_on:
- db
- redis
links:
- db:db
- redis:redis
- houdini_login:login
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}",
"-template", "/usr/src/dash/config.py.template:/usr/src/dash/config.py",
"python", "bootstrap.py"]
command: ["-c", "config.py"]
snowflake:
build: ./snowflake
restart: always
networks:
- wand
ports:
- ${SNOWFLAKE_PORT}:${SNOWFLAKE_PORT}
env_file:
- .env
environment:
- POSTGRES_HOST=db
- REDIS_HOST=redis
- MEDIA_LOCATION=${WEB_VANILLA_MEDIA}
- PORT=${SNOWFLAKE_PORT}
volumes:
- ./snowflake:/usr/src/snowflake
- ./.env:/usr/src/snowflake/.env
depends_on:
- db
- redis
- dash
links:
- db:db
- redis:redis
- houdini_login:login
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}", "python", "./main.py"]
networks:
wand:
driver: bridge