-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (81 loc) · 2.36 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
services:
app_test:
image: ghcr.io/why-not-try-calmer/feedo-test:latest
profiles: [test]
depends_on: [mongo_test, redis]
container_name: feedfarer-test
restart: "no"
build:
context: .
dockerfile: Dockerfile-test
environment:
- ALERT_CHATID
- BASE_URL
- MONGO_INITDB_ROOT_PASSWORD
- MONGO_INITDB_ROOT_USERNAME
- TELEGRAM_TOKEN
- TEST=1
app:
image: ghcr.io/why-not-try-calmer/feedo:latest
depends_on: [mongo, redis]
restart: "on-failure"
build:
context: .
dockerfile: Dockerfile
environment:
- ALERT_CHATID
- BASE_URL
- MONGO_INITDB_ROOT_PASSWORD
- MONGO_INITDB_ROOT_USERNAME
- TELEGRAM_TOKEN
volumes:
- ./static:/var/www/feedfarer-webui
mongo:
image: mongo:5.0 # `auth` doesn't work with 6.0 and beyond!
restart: "on-failure"
command: --wiredTigerCacheSizeGB 0.25 # trying to fight RAM exhaustion
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
volumes:
- mongo-data:/data/db
- ./scripts/mongo-startup.js:/scripts/mongo-startup.js:ro
ports:
- "27017:27017"
mongo_test:
profiles: [test]
image: mongo:5.0 # `auth` doesn't work with 6.0 and beyond!
restart: "on-failure"
command: --wiredTigerCacheSizeGB 0.25 # trying to fight RAM exhaustion
environment:
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD
volumes:
- mongo-data:/data/db
- ./scripts/mongo-startup.js:/scripts/mongo-startup.js:ro
ports:
- "27017:27017"
nginx:
environment:
- CERT_FULLCHAIN
- CERT_PRIV
depends_on: [app]
image: nginx:latest
restart: "on-failure"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ${CERT_FULLCHAIN:-/something}:/etc/nginx/cert.pem:ro
- ${CERT_PRIV:-/something}:/etc/nginx/private.key:ro
- ./certbot/www:/var/www/certbot/
ports:
- "80:80"
- "443:443"
redis:
image: redis:latest
restart: "on-failure"
command: redis-server --maxmemory 250mb --maxmemory-policy volatile-lfu
volumes:
- redis-data:/data/redis-store
volumes:
mongo-data:
redis-data: