-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (73 loc) · 1.61 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
version: "3"
services:
cache:
image: redis:6-alpine
db:
image: postgres:13
volumes:
- ../.duva_db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=duva
- POSTGRES_USER=duva
- POSTGRES_DB=duva
app:
build:
context: .
dockerfile: Dockerfile
image: duva:latest
stdin_open: true
tty: true
volumes:
# For local development
- .:/app
- ~/.aws:/root/.aws
ports:
- "8000:80"
depends_on:
- cache
- db
environment:
- REDIS_URL=redis://cache
- MEDIA_PATH=/app/media
- REDIS_URL=redis://cache:6379/1
- QUEUE_NAME=default
- CRON_SCHEDULE=*/30 * * * *
- DEBUG=True
- DATABASE_URL=postgresql://duva:duva@db/duva
- RUN_MIGRATIONS=True
scheduler:
build:
context: .
dockerfile: Dockerfile
image: duva:latest
command: "bash init_scheduler.sh"
volumes:
# For local development
- .:/app
- ~/.aws:/root/.aws
depends_on:
- cache
- db
environment:
- REDIS_URL=redis://cache:6379/1
- QUEUE_NAME=default
- CRON_SCHEDULE=*/30 * * * *
- SCHEDULE_ALL=False
- DATABASE_URL=postgresql://duva:duva@db/duva
worker:
build:
context: .
dockerfile: Dockerfile
image: duva:latest
command: "rq worker -c app.jobs.settings"
volumes:
# For local development
- .:/app
- ~/.aws:/root/.aws
depends_on:
- cache
- db
environment:
- REDIS_URL=redis://cache:6379/1
- QUEUE_NAME=default
- DATABASE_URL=postgresql://duva:duva@db/duva