2020-04-26 00:31:21 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:12.2-alpine
|
|
|
|
restart: always
|
2020-05-07 02:54:42 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2020-04-26 00:31:21 +00:00
|
|
|
networks:
|
|
|
|
- wand
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
volumes:
|
2020-05-20 00:04:28 +00:00
|
|
|
- ./houdini/houdini.sql:/docker-entrypoint-initdb.d/houdini.sql
|
2020-05-07 02:54:42 +00:00
|
|
|
- ./.data:/var/lib/postgresql/data
|
2020-04-26 00:31:21 +00:00
|
|
|
redis:
|
|
|
|
image: redis:5.0.9-alpine
|
2020-05-07 02:54:42 +00:00
|
|
|
restart: always
|
2020-04-26 00:31:21 +00:00
|
|
|
networks:
|
|
|
|
- wand
|
|
|
|
ports:
|
|
|
|
- 6379
|
|
|
|
web:
|
2020-05-07 02:54:42 +00:00
|
|
|
build: ./web
|
|
|
|
restart: always
|
|
|
|
env_file:
|
|
|
|
- .env
|
2020-04-26 00:31:21 +00:00
|
|
|
ports:
|
2020-05-08 17:23:45 +00:00
|
|
|
- ${WEB_PORT}:80
|
2020-04-26 00:31:21 +00:00
|
|
|
networks:
|
|
|
|
- wand
|
|
|
|
links:
|
|
|
|
- dash:dash
|
|
|
|
volumes:
|
2020-05-07 02:54:42 +00:00
|
|
|
- ./www:/usr/share/nginx/html
|
2020-04-26 00:31:21 +00:00
|
|
|
- ./legacy-media:/usr/share/nginx/legacy
|
|
|
|
- ./vanilla-media:/usr/share/nginx/vanilla
|
2020-05-07 02:54:42 +00:00
|
|
|
- ./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",
|
2020-04-26 00:31:21 +00:00
|
|
|
|
2020-05-07 02:54:42 +00:00
|
|
|
"-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;"]
|
2020-04-26 00:31:21 +00:00
|
|
|
houdini_login:
|
2020-05-20 00:04:28 +00:00
|
|
|
build: ./houdini
|
2020-05-07 02:54:42 +00:00
|
|
|
restart: always
|
|
|
|
env_file:
|
|
|
|
- .env
|
2020-04-26 00:31:21 +00:00
|
|
|
networks:
|
|
|
|
- wand
|
|
|
|
ports:
|
2020-05-07 02:54:42 +00:00
|
|
|
- ${GAME_LOGIN_PORT}:${GAME_LOGIN_PORT}
|
2020-04-26 00:31:21 +00:00
|
|
|
volumes:
|
2020-05-20 00:04:28 +00:00
|
|
|
- ./houdini:/usr/src/houdini
|
2020-05-07 02:54:42 +00:00
|
|
|
- ./wait-for-postgres.sh:/usr/src/houdini/wait-for-postgres.sh
|
2020-04-26 00:31:21 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|
2020-05-07 02:54:42 +00:00
|
|
|
entrypoint: ["dockerize", "-wait", "tcp://redis:6379", "./wait-for-postgres.sh", "db", "python", "bootstrap.py", "login"]
|
|
|
|
command: ["--port", "${GAME_LOGIN_PORT}",
|
2020-04-26 00:31:21 +00:00
|
|
|
"--redis-address", "redis",
|
|
|
|
"--database-address", "db",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-user", "${POSTGRES_USER}",
|
2020-05-07 16:28:25 +00:00
|
|
|
"--database-name", "${POSTGRES_USER}",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-password", "${POSTGRES_PASSWORD}"]
|
2020-04-26 00:31:21 +00:00
|
|
|
houdini_blizzard:
|
2022-04-06 05:38:50 +00:00
|
|
|
build: ./houdini
|
2020-05-07 02:54:42 +00:00
|
|
|
restart: always
|
2020-04-26 00:31:21 +00:00
|
|
|
networks:
|
|
|
|
- wand
|
|
|
|
ports:
|
|
|
|
- 9875:9875
|
|
|
|
volumes:
|
2020-05-20 00:04:28 +00:00
|
|
|
- ./houdini:/usr/src/houdini
|
2020-04-26 00:31:21 +00:00
|
|
|
depends_on:
|
|
|
|
- houdini_login
|
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|
2020-05-07 02:54:42 +00:00
|
|
|
- houdini_login:login
|
|
|
|
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}", "python", "bootstrap.py", "world"]
|
|
|
|
command: ["-id", "3100", "--name", "blizzard", "--port", "9875", "--lang", "en",
|
2020-04-26 00:31:21 +00:00
|
|
|
"--redis-address", "redis",
|
|
|
|
"--database-address", "db",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-user", "${POSTGRES_USER}",
|
2020-05-07 16:28:25 +00:00
|
|
|
"--database-name", "${POSTGRES_USER}",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-password", "${POSTGRES_PASSWORD}"]
|
2020-04-26 00:31:21 +00:00
|
|
|
houdini_glaciar:
|
2022-04-06 05:38:50 +00:00
|
|
|
build: ./houdini
|
2020-05-07 02:54:42 +00:00
|
|
|
restart: always
|
2020-04-26 00:31:21 +00:00
|
|
|
networks:
|
|
|
|
- wand
|
|
|
|
ports:
|
|
|
|
- 9876:9876
|
|
|
|
volumes:
|
2020-05-20 00:04:28 +00:00
|
|
|
- ./houdini:/usr/src/houdini
|
2020-04-26 00:31:21 +00:00
|
|
|
depends_on:
|
|
|
|
- houdini_login
|
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|
2020-05-07 02:54:42 +00:00
|
|
|
- houdini_login:login
|
|
|
|
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}", "python", "bootstrap.py", "world"]
|
|
|
|
command: ["-id", "3101", "--name", "glaciar", "--port", "9876", "--lang", "es",
|
2020-04-26 00:31:21 +00:00
|
|
|
"--redis-address", "redis",
|
|
|
|
"--database-address", "db",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-user", "${POSTGRES_USER}",
|
2020-05-07 16:28:25 +00:00
|
|
|
"--database-name", "${POSTGRES_USER}",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-password", "${POSTGRES_PASSWORD}"]
|
2020-04-26 00:31:21 +00:00
|
|
|
houdini_avalanche:
|
2022-04-06 05:38:50 +00:00
|
|
|
build: ./houdini
|
2020-05-07 02:54:42 +00:00
|
|
|
restart: always
|
2020-04-26 00:31:21 +00:00
|
|
|
networks:
|
|
|
|
- wand
|
|
|
|
ports:
|
|
|
|
- 9877:9877
|
|
|
|
volumes:
|
2020-05-20 00:04:28 +00:00
|
|
|
- ./houdini:/usr/src/houdini
|
2020-04-26 00:31:21 +00:00
|
|
|
depends_on:
|
|
|
|
- houdini_login
|
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|
2020-05-07 02:54:42 +00:00
|
|
|
- houdini_login:login
|
|
|
|
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}", "python", "bootstrap.py", "world"]
|
|
|
|
command: ["-id", "3102", "--name", "avalanche", "--port", "9877", "--lang", "pt",
|
2020-04-26 00:31:21 +00:00
|
|
|
"--redis-address", "redis",
|
|
|
|
"--database-address", "db",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-user", "${POSTGRES_USER}",
|
2020-05-07 16:28:25 +00:00
|
|
|
"--database-name", "${POSTGRES_USER}",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-password", "${POSTGRES_PASSWORD}"]
|
2020-04-26 00:31:21 +00:00
|
|
|
houdini_yeti:
|
2022-04-06 05:38:50 +00:00
|
|
|
build: ./houdini
|
2020-05-07 02:54:42 +00:00
|
|
|
restart: always
|
2020-04-26 00:31:21 +00:00
|
|
|
networks:
|
|
|
|
- wand
|
|
|
|
ports:
|
|
|
|
- 9878:9878
|
|
|
|
volumes:
|
2020-05-20 00:04:28 +00:00
|
|
|
- ./houdini:/usr/src/houdini
|
2020-04-26 00:31:21 +00:00
|
|
|
depends_on:
|
|
|
|
- houdini_login
|
|
|
|
links:
|
|
|
|
- db:db
|
|
|
|
- redis:redis
|
2020-05-07 02:54:42 +00:00
|
|
|
- houdini_login:login
|
|
|
|
entrypoint: ["dockerize", "-wait", "tcp://login:${GAME_LOGIN_PORT}", "python", "bootstrap.py", "world"]
|
|
|
|
command: ["-id", "3103", "--name", "yeti", "--port", "9878", "--lang", "fr",
|
2020-04-26 00:31:21 +00:00
|
|
|
"--redis-address", "redis",
|
|
|
|
"--database-address", "db",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-user", "${POSTGRES_USER}",
|
2020-05-07 16:28:25 +00:00
|
|
|
"--database-name", "${POSTGRES_USER}",
|
2020-05-07 02:54:42 +00:00
|
|
|
"--database-password", "${POSTGRES_PASSWORD}"]
|
2020-04-26 00:31:21 +00:00
|
|
|
dash:
|
|
|
|
build: ./dash
|
2020-05-07 02:54:42 +00:00
|
|
|
restart: always
|
2020-04-26 00:31:21 +00:00
|
|
|
networks:
|
|
|
|
- wand
|
2020-05-07 02:54:42 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
2020-04-26 00:31:21 +00:00
|
|
|
ports:
|
|
|
|
- 3000
|
|
|
|
volumes:
|
|
|
|
- ./dash:/usr/src/dash
|
2020-05-07 02:54:42 +00:00
|
|
|
- ./vanilla-media/media/avatar/paper:/usr/src/dash/items
|
|
|
|
- ./templates/dash/config.py.template:/usr/src/dash/config.py.template
|
2020-04-26 00:31:21 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
links:
|
|
|
|
- db:db
|
2020-05-20 01:05:46 +00:00
|
|
|
- redis:redis
|
2020-05-07 02:54:42 +00:00
|
|
|
- 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"]
|
2020-04-26 00:31:21 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
wand:
|
|
|
|
driver: bridge
|