-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
370 lines (354 loc) · 9.74 KB
/
docker-compose.yaml
File metadata and controls
370 lines (354 loc) · 9.74 KB
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
services:
# NGINX PROXY
# https://github.com/NginxProxyManager/nginx-proxy-manager
nginx:
image: jc21/nginx-proxy-manager:latest
restart: unless-stopped
container_name: nginx
ports:
- "80:80"
- "443:443"
- "81:81"
volumes:
- /home/ubuntu/nginx/data:/data
- /home/ubuntu/nginx/letsencrypt:/letsencrypt
networks:
- public-proxy # PUBLIC SERVICES MUST CONNECT TO THIS NETWORK
# NODERED
# https://nodered.org/docs/getting-started/docker
node-red:
image: nodered/node-red:latest-18
container_name: nodered
restart: unless-stopped
volumes:
- /home/ubuntu/nodered:/data
environment:
- TZ=America/Los_Angeles
- NODE_RED_CREDENTIAL_SECRET="XXX"
networks:
- public-proxy
# FOUNDRY
# https://github.com/felddy/foundryvtt-docker
foundryvtt:
container_name: foundryvtt
image: felddy/foundryvtt:release
hostname: XXX.dungeon.church
restart: unless-stopped
networks:
- public-proxy
volumes:
- /home/ubuntu/foundryvtt:/data
- /home/ubuntu/5etools/homebrew:/data/Data/assets/homebrew
environment:
- UID=1001
- GID=1001
- FOUNDRY_USERNAME=XXX
- FOUNDRY_PASSWORD=XXX
- CONTAINER_CACHE=/data/cache
- FOUNDRY_ADMIN_KEY=XXX
- FOUNDRY_MINIFY_STATIC_FILES=true
- FOUNDRY_HOSTNAME=XXX.dungeon.church
- VIRTUAL_HOST=XXXX.dungeon.church
- FOUNDRY_AWS_CONFIG=aws.json # Backblaze B2
- FOUNDRY_PROXY_PORT=443
- FOUNDRY_PROXY_SSL=true
- VIRTUAL_PORT=30000
- TIMEZONE='America/Los_Angeles'
- FOUNDRY_UID=1001
- FOUNDRY_GID=1001
ports:
- 30000:30000/tcp
links:
- ddb-proxy:ddb-proxy
# FOUNDRY 2 WITH SHARING
# This sets up a second FVTT server that shares content & settings with the first
foundryvtt2:
container_name: foundry2
image: felddy/foundryvtt:release
hostname: XXX.dungeon.church
restart: unless-stopped
networks:
- public-proxy
volumes:
- /home/ubuntu/foundryvtt2:/data # needs its own root /data folder
- /home/ubuntu/foundryvtt/Data:/data/Data # shares the /data/Data folder that contains content
- /home/ubuntu/foundryvtt/cache:/data/cache
- /home/ubuntu/5etools/homebrew:/data/Data/assets/homebrew
environment:
- UID=1001
- GID=1001
- FOUNDRY_USERNAME=XXX
- FOUNDRY_PASSWORD=XXX
- CONTAINER_CACHE=/data/cache
- FOUNDRY_ADMIN_KEY=XXX
- FOUNDRY_MINIFY_STATIC_FILES=true
- FOUNDRY_HOSTNAME=XXX.dungeon.church
- VIRTUAL_HOST=XXX.dungeon.church
- FOUNDRY_AWS_CONFIG=aws.json
- FOUNDRY_PROXY_PORT=443
- FOUNDRY_PROXY_SSL=true
- VIRTUAL_PORT=30000
- TIMEZONE='America/Los_Angeles'
- FOUNDRY_UID=1001
- FOUNDRY_GID=1001
ports:
- 30001:30000/tcp
# CONNECTS FOUNDRY to D&D BEYOND
# Our group isn't using this anymore, but leaving in as example
# https://github.com/MrPrimate/ddb-proxy
ddb-proxy:
image: ghcr.io/mrprimate/ddb-proxy:latest
container_name: ddb-proxy
restart: unless-stopped
networks:
- public-proxy
# 5E TOOLS
# https://github.com/Jafner/5etools-docker
5etools:
restart: unless-stopped
container_name: 5etools
image: jafner/5etools-docker
volumes:
- /home/ubuntu/5etools:/usr/local/apache2/htdocs
- /home/ubuntu/5etools/homebrew/index.json:/usr/local/apache2/htdocs/homebrew/index.json:ro # try to prevent overwriting custom index on restart
environment:
- SOURCE=GITHUB
- IMG=TRUE
# Use the 2014 Rules
- DL_LINK=https://github.com/5etools-mirror-3/5etools-2014-src.git
- IMG_LINK=https://github.com/5etools-mirror-3/5etools-2014-img.git
networks:
- public-proxy
# HOMEBREWERY
# https://github.com/naturalcrit/homebrewery
homebrewdb:
image: mongo:latest
container_name: homebrewdb
volumes:
- /home/ubuntu/homebrewery/db:/data/db
networks:
- homebrew-internal
homebrew:
restart: unless-stopped
container_name: homebrew
# FIRST: clone the repo, then pull node:18-alpine
# git clone https://github.com/naturalcrit/homebrewery
# docker pull node:18-alpine
build:
context: ./homebrewery
dockerfile: Dockerfile
image: homebrewery
depends_on:
- homebrewdb
environment:
MONGODB_URI: mongodb://homebrewdb/homebrewery
networks:
- homebrew-internal
- public-proxy
# OUTLINE STACK
#
# DB FOR OUTLINE
postdb:
image: postgres:13
restart: unless-stopped
container_name: postdb
environment:
- POSTGRES_USER=XXX
- POSTGRES_PASSWORD=XXX
- POSTGRES_DB=XXX
volumes:
- /home/ubuntu/dbpost:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- outline-internal
# OUTLINE DB BACKUP
postdb_backup:
image: postgres:13
depends_on:
- postdb
volumes:
- /mnt/s3/backup:/backup
command: >
bash -c "while true; do
PGPASSWORD=$$POSTGRES_PASSWORD pg_dump -h postdb -U $$POSTGRES_USER -Fc $$POSTGRES_DB > /backup/$$(date +%Y-%m-%d-%H-%M-%S)-outline-postgres.dump
echo ""Backup done at $$(date +%Y-%m-%d_%H:%M:%S)""
ls -1 /backup/*.dump | head -n -30 | xargs rm -f
sleep 86400
done"
environment:
POSTGRES_USER: XXX
POSTGRES_PASSWORD: XXX
POSTGRES_DB: XXX
networks:
- outline-internal
# REDIS FOR OUTLINE
redis:
image: redis
restart: unless-stopped
container_name: redis
networks:
- outline-internal
# OUTLINE WIKI
# https://github.com/outline/outline
outline:
image: outlinewiki/outline:1.6.0
container_name: outline
restart: unless-stopped
command: node build/server/index.js
depends_on:
- postdb
- redis
links:
- postdb:postdb
- redis:redis
env_file:
- /home/ubuntu/outline/outline.env
ports:
- "1661:80"
volumes:
- /home/ubuntu/outline/data:/var/lib/outline/data
networks:
- outline-internal
- public-proxy
#
# OPTIONAL OUTLINE INTEGRATIONS
#
# DRAWIO
# https://github.com/jgraph/docker-drawio
drawio:
image: jgraph/drawio
container_name: drawio
restart: unless-stopped
environment:
- PUBLIC_DNS=your.tld
- DRAWIO_BASE_URL=your.tld
- DRAWIO_GOOGLE_CLIENT_ID=XXX
- DRAWIO_GOOGLE_CLIENT_SECRET=XXX
- DRAWIO_GOOGLE_APP_ID=XXX
- DRAWIO_GOOGLE_VIEWER_CLIENT_ID=XXX
- DRAWIO_GOOGLE_VIEWER_CLIENT_SECRET=XXX
- DRAWIO_GOOGLE_VIEWER_APP_ID=XXX
- KEYSTORE_PASS=XXX
networks:
- public-proxy
# GHOST STACK
#
# GHOST
# https://github.com/TryGhost/Ghost
ghost_dungeon:
image: ghost:latest
restart: always
container_name: ghost_dungeon
networks:
- public-proxy
- internal-db
links:
- db:db
depends_on:
- db
environment:
# see https://ghost.org/docs/config/#configuration-options
- database__client=mysql
- database__connection__host=db
- database__connection__user=XXX
- database__connection__password=XXX
- database__connection__database=XXX
# this url value is just an example, and is likely wrong for your environment!
- url=https://www.dungeon.church
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
#NODE_ENV: development
- mail__transport=SMTP
- mail__options__host=smtp.mailgun.org
- mail__options__port=587
- mail__options__auth__user=XXX
- mail__options__auth__pass=XXX
- mail__from="Dungeon Church <noreply@dungeon.church>"
volumes:
- /home/ubuntu/ghost:/var/lib/ghost
# GHOST DB
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: XXX
volumes:
- /home/ubuntu/db:/var/lib/mysql
networks:
- internal-db
# GHOST DB BACKUP
db_backup:
image: databack/mysql-backup
restart: always
container_name: db_backup
user: "0" # needed for local volume
environment:
- DB_DUMP_FREQ=1440 # once a day
- DB_SERVER=db
- DB_USER=XXX
- DB_PASS=XXX
- DB_NAMES=ghost
- DB_DUMP_TARGET=/backup
- DB_DUMP_SAFECHARS=true
links:
- db:db
networks:
- internal-db
volumes:
- /mnt/s3/backup:/backup
# RED DISCORD BOT
# https://github.com/PhasecoreX/docker-red-discordbot
redbot:
container_name: redbot
image: phasecorex/red-discordbot
restart: unless-stopped
volumes:
- /home/ubuntu/redbot:/data
environment:
- TOKEN=XXX
- PREFIX=.
- TZ=America/Los_Angeles
- PUID=1000
# RESTREAMER
# https://github.com/datarhei/restreamer
restreamer:
container_name: restreamer
image: datarhei/restreamer:latest
restart: always
volumes:
- /home/ubuntu/restreamer/config:/core/config
- /home/ubuntu/restreamer/data:/core/data
ports:
- 8081:8080 # HTTP
#- "0.0.0.0:1936:1936/tcp" # RTMPS
#- "0.0.0.0:1935:1935/tcp" # RTMP
- "0.0.0.0:6000:6000/udp" # SRT
networks:
- public-proxy
# QUAKE 3 ARENA
quake:
container_name: quake
image: gl-registry.emzi0767.dev/emzi0767/ioq3-universal/ioq3-universal:latest
restart: unless-stopped
volumes:
- /home/ubuntu/quake/baseq3:/quake/baseq3:ro
- /home/ubuntu/quake:/quake/home
ports:
- 0.0.0.0:27960:27960/udp
# This serves the custom maps
quake_web:
image: sebp/lighttpd
container_name: quake_web
volumes:
- /home/ubuntu/quake/baseq3:/var/www/localhost/htdocs
ports:
- 27961:80
tty: true
restart: unless-stopped
networks:
- public-proxy
networks:
public-proxy:
internal-db:
outline-internal:
homebrew-internal: