-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
221 lines (211 loc) · 6.58 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
version: "3.7"
services:
logging:
container_name: sixgg-logging
build: ./logging
ports:
- "12201:12201/udp"
environment:
PORT: 12201
APPINSIGHTS_PERFORMANCE_METRICS: 0
APPINSIGHTS_INSTRUMENTATIONKEY: /run/secrets/APPINSIGHTS_INSTRUMENTATIONKEY
APPLICATION: six.gg
secrets:
- APPINSIGHTS_INSTRUMENTATIONKEY
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
entrypoint: /var/logging/start.sh
db:
container_name: sixgg-db
build: ./db
depends_on:
- logging
networks:
- six.gg-network
ports:
- "27017:27017"
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201"
environment:
MONGO_INITDB_DATABASE: sixgg
MONGO_INITDB_ROOT_USERNAME_FILE: /run/secrets/MONGO_INITDB_ROOT_USERNAME_FILE
MONGO_INITDB_ROOT_PASSWORD_FILE: /run/secrets/MONGO_INITDB_ROOT_PASSWORD_FILE
WEB_SIXGG_PASSWORD_FILE: /run/secrets/WEB_SIXGG_PASSWORD_FILE
secrets:
- MONGO_INITDB_ROOT_USERNAME_FILE
- MONGO_INITDB_ROOT_PASSWORD_FILE
- WEB_SIXGG_PASSWORD_FILE
restart: always
volumes:
- /data/db:/data/db:rw
- /mnt/backup:/data/backup:rw
entrypoint: /var/mongo/start.sh
privileged: true
redis:
container_name: sixgg-redis
build: ./redis
depends_on:
- logging
networks:
- six.gg-network
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201"
environment:
REDIS_PASSWORD_FILE: /run/secrets/REDIS_PASSWORD_FILE
REDIS_PORT: 6379
secrets:
- REDIS_PASSWORD_FILE
restart: always
entrypoint: /var/redis/start.sh
privileged: true
node:
container_name: sixgg-node
build: ./node
depends_on:
- logging
- db
- redis
networks:
- six.gg-network
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201"
environment:
APPINSIGHTS_INSTRUMENTATIONKEY: /run/secrets/APPINSIGHTS_INSTRUMENTATIONKEY
DEFAULT_TIMEZONE: America/Los_Angeles
DISCORD_CLIENTID_FILE: /run/secrets/DISCORD_CLIENTID_FILE
DISCORD_CLIENTSECRET_FILE: /run/secrets/DISCORD_CLIENTSECRET_FILE
DISCORD_GUILD: Six Gaming
DISCORD_REDIRECT_URI: https://six.gg/oauth/discord
DISCORD_TOKEN_FILE: /run/secrets/DISCORD_TOKEN_FILE
DISCORD_USERSCOPES: identify connections guilds
DOMAIN: six.gg
ENCRYPTION_KEY_FILE: /run/secrets/ENCRYPTION_KEY_FILE
MINIFY_CACHE: 1
MINIFY_ENABLED: 1
NODE_ENV: production
PORT: 3030
REDIS_PASSWORD_FILE: /run/secrets/REDIS_PASSWORD_FILE
REDIS_PORT: 6379
REDIS_PREFIX: six
SIXGG_DISCORD_URL: https://ronc.li/six-discord
TWITCH_BOT_ACCESSTOKEN_FILE: /run/secrets/TWITCH_BOT_ACCESSTOKEN_FILE
TWITCH_BOT_REFRESHTOKEN_FILE: /run/secrets/TWITCH_BOT_REFRESHTOKEN_FILE
TWITCH_BOT_SCOPES: chat:read chat:edit
TWITCH_BOT_USERID: 117428463
TWITCH_CHANNEL: sixgaminggg
TWITCH_CHANNEL_ACCESSTOKEN_FILE: /run/secrets/TWITCH_CHANNEL_ACCESSTOKEN_FILE
TWITCH_CHANNEL_EVENTSUB_SECRET_FILE: /run/secrets/TWITCH_CHANNEL_EVENTSUB_SECRET_FILE
TWITCH_CHANNEL_REFRESHTOKEN_FILE: /run/secrets/TWITCH_CHANNEL_REFRESHTOKEN_FILE
TWITCH_CHANNEL_SCOPES: channel_editor channel_subscriptions channel_check_subscription chat_login bits:read chat:read chat:edit channel:moderate channel:read:subscriptions whispers:read whispers:edit channel:read:redemptions
TWITCH_CHANNEL_USERID: 116508839
TWITCH_CLIENTID_FILE: /run/secrets/TWITCH_CLIENTID_FILE
TWITCH_CLIENTSECRET_FILE: /run/secrets/TWITCH_CLIENTSECRET_FILE
TWITCH_REDIRECT_URI: https://six.gg/twitch/oauth
WEB_SIXGG_PASSWORD_FILE: /run/secrets/WEB_SIXGG_PASSWORD_FILE
secrets:
- APPINSIGHTS_INSTRUMENTATIONKEY
- DISCORD_CLIENTID_FILE
- DISCORD_CLIENTSECRET_FILE
- DISCORD_TOKEN_FILE
- ENCRYPTION_KEY_FILE
- REDIS_PASSWORD_FILE
- TWITCH_BOT_ACCESSTOKEN_FILE
- TWITCH_BOT_REFRESHTOKEN_FILE
- TWITCH_CHANNEL_ACCESSTOKEN_FILE
- TWITCH_CHANNEL_EVENTSUB_SECRET_FILE
- TWITCH_CHANNEL_REFRESHTOKEN_FILE
- TWITCH_CLIENTID_FILE
- TWITCH_CLIENTSECRET_FILE
- WEB_SIXGG_PASSWORD_FILE
restart: always
entrypoint: /var/www/start.sh
privileged: true
nginx:
container_name: sixgg-nginx
build: ./nginx
depends_on:
- logging
- node
networks:
- six.gg-network
ports:
- "80:80"
- "443:443"
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201"
environment:
DOMAIN: six.gg
PROXY_PORT: 3030
restart: always
volumes:
- certbot-conf:/etc/letsencrypt:rw
- certbot-work:/var/certbot/work:rw
- nginx-work:/var/nginx/work:rw
entrypoint: /var/nginx/start.sh
certbot:
container_name: sixgg-certbot
build: ./certbot
depends_on:
- nginx
- logging
logging:
driver: "gelf"
options:
gelf-address: "udp://localhost:12201"
environment:
DOMAIN: six.gg
EMAIL: [email protected]
restart: always
volumes:
- certbot-conf:/etc/letsencrypt:rw
- certbot-work:/var/certbot/work:rw
entrypoint: /var/certbot/start.sh
networks:
six.gg-network:
driver: bridge
volumes:
certbot-conf:
certbot-work:
nginx-work:
secrets:
APPINSIGHTS_INSTRUMENTATIONKEY:
file: ./secrets/APPINSIGHTS_INSTRUMENTATIONKEY
DISCORD_CLIENTID_FILE:
file: ./secrets/DISCORD_CLIENTID_FILE
DISCORD_CLIENTSECRET_FILE:
file: ./secrets/DISCORD_CLIENTSECRET_FILE
DISCORD_TOKEN_FILE:
file: ./secrets/DISCORD_TOKEN_FILE
ENCRYPTION_KEY_FILE:
file: ./secrets/ENCRYPTION_KEY_FILE
MONGO_INITDB_ROOT_PASSWORD_FILE:
file: ./secrets/MONGO_INITDB_ROOT_PASSWORD_FILE
MONGO_INITDB_ROOT_USERNAME_FILE:
file: ./secrets/MONGO_INITDB_ROOT_USERNAME_FILE
REDIS_PASSWORD_FILE:
file: ./secrets/REDIS_PASSWORD_FILE
TWITCH_BOT_ACCESSTOKEN_FILE:
file: ./secrets/TWITCH_BOT_ACCESSTOKEN_FILE
TWITCH_BOT_REFRESHTOKEN_FILE:
file: ./secrets/TWITCH_BOT_REFRESHTOKEN_FILE
TWITCH_CHANNEL_ACCESSTOKEN_FILE:
file: ./secrets/TWITCH_CHANNEL_ACCESSTOKEN_FILE
TWITCH_CHANNEL_EVENTSUB_SECRET_FILE:
file: ./secrets/TWITCH_CHANNEL_EVENTSUB_SECRET_FILE
TWITCH_CHANNEL_REFRESHTOKEN_FILE:
file: ./secrets/TWITCH_CHANNEL_REFRESHTOKEN_FILE
TWITCH_CLIENTID_FILE:
file: ./secrets/TWITCH_CLIENTID_FILE
TWITCH_CLIENTSECRET_FILE:
file: ./secrets/TWITCH_CLIENTSECRET_FILE
WEB_SIXGG_PASSWORD_FILE:
file: ./secrets/WEB_SIXGG_PASSWORD_FILE