-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
63 lines (58 loc) · 1.29 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
version: "2.2"
services:
redis:
image: redis:6.0.5-alpine
ports:
- "6379:6379"
checker:
build:
context: ./checker
depends_on:
- redis
environment:
- REDIS_HOST=redis
- SECONDS_BETWEEN_INFO_UPDATES=7200
- SECONDS_BETWEEN_CHECKS_FOR_OUTDATING=30
- SECONDS_BETWEEN_FILE_CHECKS=10
- IS_HASH_SUM_CHECK_ENABLED=True
- IS_FIRST_LOAD_FROM_FILE_ENABLED=True
notifier:
build:
context: ./notifier
depends_on:
- redis
environment:
- REDIS_HOST=redis
- NOTIFY_IF_DAYS_LEFT=20
- NOTIFY_EVERY_N_HOURS=8
- WEBHOOK_URL=${WEBHOOK_URL_FROM_SECRET_ENV_FILE}
dashboard:
build:
context: ./dashboard
expose:
- "8080"
scale: 3
depends_on:
- redis
- checker
environment:
- REDIS_HOST=redis
- TZ=Pacific/Auckland
- SECONDS_BETWEEN_INFO_UPDATES=7200
- SECONDS_BETWEEN_CHECKS_FOR_OUTDATING=30
- SECONDS_BETWEEN_UPDATE_ABSENT=10
command:
[
"--worker-tmp-dir /dev/shm",
"--log-file=-",
"--workers=2",
"-b 0.0.0.0:8080",
]
nginx:
image: nginx:1.18-alpine
ports:
- "8080:80"
volumes:
- ./nginx_conf/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- dashboard