-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.yaml
100 lines (92 loc) · 2.39 KB
/
docker-compose.yaml
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
version: "3.6"
services:
# webserver:
# image: nginx:latest
# ports:
# - 80:80
# - 443:443
# restart: always
# volumes:
# - ./nginx/conf/:/etc/nginx/conf.d/:ro
# - ./certbot/www:/var/www/certbot/:ro
# - ./certbot/conf/:/etc/nginx/ssl/:ro
# certbot:
# image: certbot/certbot:latest
# volumes:
# - ./certbot/www/:/var/www/certbot/:rw
# - ./certbot/conf/:/etc/letsencrypt/:rw
database:
image: postgres:14
volumes:
- d1337db:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_UNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASS}
ports:
- "${POSTGRES_PORT}:5432"
restart: always
graphql-engine:
image: hasura/graphql-engine:v2.7.0.cli-migrations-v3
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://${POSTGRES_UNAME}:${POSTGRES_PASS}@database:5432/${POSTGRES_UNAME}
HASURA_GRAPHQL_DATABASE_URL: postgres://${POSTGRES_UNAME}:${POSTGRES_PASS}@database:5432/${POSTGRES_UNAME}
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
HASURA_GRAPHQL_DEV_MODE: "false"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: "${GQL_SECRET}"
HASURA_GRAPHQL_ENABLE_TELEMETRY: "false"
HASURA_GRAPHQL_JWT_SECRET: "{\"key\": \"${JWT_SECRET}\",\"type\": \"HS256\",\"claims_format\": \"json\"}"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "guest"
ports:
- "${GQL_PORT}:8080"
depends_on:
- "database"
- "discordbot"
restart: always
webservice:
build:
context: ./webservice/
dockerfile: Dockerfile
image: webservice
ports:
- "${WEBSERVICE_PORT}:3000"
depends_on:
- "database"
- "graphql-engine"
- "websocket"
- "game"
restart: always
discordbot:
build:
context: ./discordbot/
dockerfile: Dockerfile
image: discordbot
ports:
- "${DISCORDBOT_PORT}:3000"
depends_on:
- "database"
restart: always
websocket:
build:
context: ./websocket/
dockerfile: Dockerfile
image: websocket
ports:
- "${WEBSOCKET_PORT}:3000"
depends_on:
- "database"
restart: always
game:
build:
context: ./game/
dockerfile: Dockerfile
image: game
ports:
- "${GAME_PORT}:3000"
depends_on:
- "database"
- "graphql-engine"
- "websocket"
restart: always
volumes:
d1337db: