-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (56 loc) · 1.21 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
version: '3.8'
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- app
restart: always
app:
build: .
expose:
- "8000"
environment:
- REDIS_HOST=redis
- DB_URL=sqlite:///data/db.sqlite3
- BASE_URL=https://certainty.dev
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
volumes:
- ./data:/data
depends_on:
- redis
restart: always
redis:
image: redis:alpine
ports:
- "6379:6379"
restart: always
rq_worker:
build: .
command: rq worker certainty
environment:
- REDIS_HOST=redis
- DB_URL=sqlite:///data/db.sqlite3
- BASE_URL=https://certainty.dev
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
volumes:
- ./data:/data
depends_on:
- redis
restart: always
rq_scheduler:
build: .
command: rqscheduler --host redis --port 6379 --db 0 --interval 1
environment:
- REDIS_HOST=redis
- DB_URL=sqlite:///data/db.sqlite3
- BASE_URL=https://certainty.dev
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
volumes:
- ./data:/data
depends_on:
- redis
restart: always