-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
57 lines (57 loc) · 1.22 KB
/
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
services:
redis:
image: redislabs/redismod
pg:
image: postgres:16
environment:
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=dumbpass
volumes:
- ./instance:/var/lib/postgresql/data
omnyom:
build:
context: .
target: builder
image: omnyomapp
# flask requires SIGINT to stop gracefully
# (default stop signal from Compose is SIGTERM)
stop_signal: SIGINT
secrets:
- dev_database_secret
- test_database_secret
ports:
- "5000:5000"
volumes:
- .:/code
depends_on:
- pg
- redis
worker:
image: omnyomapp
command: ["dramatiq app.initializers.dramatiq_redis app.operations.refresh"]
volumes:
- .:/code
secrets:
- dev_database_secret
- test_database_secret
depends_on:
- omnyom
- pg
- redis
cron-worker:
image: omnyomapp
command: ["cron -f"]
volumes:
- .:/code
- ./crontabs:/var/spool/cron/crontabs/
secrets:
- dev_database_secret
- test_database_secret
depends_on:
- pg
- redis
secrets:
dev_database_secret:
file: ./secrets/dev_database_secret.txt
test_database_secret:
file: ./secrets/test_database_secret.txt