-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
69 lines (64 loc) · 1.88 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
version: '3'
volumes:
mongo_dbdata:
user_data:
mongo_backup:
networks:
traefik:
external: true
services:
fist:
image: piemonkey/volunteers-nowhere:2023-01-28
restart: always
links:
- mongo
networks:
- traefik
- default
environment:
- MONGO_URL=mongodb://mongo/volunteers
- ROOT_URL=https://fist.goingnowhere.org
- MAIL_URL=smtp://USER:PASSWORD@mail.euroburners.net:587
- NOONER_HUNT_API=https://fistbump.goingnowhere.org/huntthenooner
- NOONER_HUNT_KEY=NOONER_HUNT_KEY
- NODE_ENV=production
labels:
- traefik.enable=true
- traefik.http.routers.fist.rule=Host(`fist.goingnowhere.org`)
- traefik.http.routers.fist.entrypoints=web
- traefik.http.routers.fist.middlewares=SwitchToHttps
- traefik.http.routers.fist-ssl.rule=Host(`fist.goingnowhere.org`)
- traefik.http.routers.fist-ssl.entrypoints=web-secure
- traefik.http.routers.fist-ssl.tls.certresolver=burner
- traefik.http.routers.fist-ssl.tls=true
- traefik.http.middlewares.SwitchToHttps.redirectscheme.scheme=https
- traefik.http.services.app-fist.loadbalancer.server.port=3000
volumes:
- user_data:/home/node/bundle/bundle/programs/server/profilePictures
mongo:
image: mongo:4.4.18
command: mongod --storageEngine=wiredTiger
restart: always
networks:
- default
volumes:
- mongo_dbdata:/data/db
labels:
- traefik.enable=false
# TODO Switch this out for a different image, e.g. one with simple recovery instructions
mongo-backup:
image: tiredofit/mongodb-backup
restart: always
links:
- mongo
environment:
- DB_HOST=mongo
- DB_DUMP_FREQ=720
- DB_DUMP_BEGIN=0300
- DB_CLEANUP_TIME=8640
- MD5=TRUE
- COMPRESSION=XZ
volumes:
- mongo_backup:/backups
labels:
- traefik.enable=false