-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (59 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
64 lines (59 loc) · 1.13 KB
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
version: '3'
services:
db:
image: postgres:10.11
hostname: db
restart: always
volumes:
- postgresql_data:/var/lib/postgresql/data
redis:
image: redis:6.0.5
hostname: redis
restart: always
volumes:
- redis_data:/data
service:
build:
context: .
dockerfile: Dockerfile
stdin_open: true
tty: true
restart: always
volumes:
- .:/app
env_file:
- .env
environment:
APP_MIGRATE: "on"
START_APP: "on"
depends_on:
- db
- redis
celery:
build:
context: .
dockerfile: Dockerfile
restart: always
command: ["celery", "-A", "app.celery", "worker", "-l", "info", "-c", "2"]
volumes:
- .:/app
env_file:
- .env
depends_on:
- db
- redis
celery-beat:
build:
context: .
dockerfile: Dockerfile
command: ["celery", "-A", "app.celery", "beat", "-l", "info", "-s", "/tmp/celerybeat-schedule.db", "--pidfile", "/tmp/celeryd.pid"]
volumes:
- .:/app
env_file:
- .env
depends_on:
- db
- redis
volumes:
postgresql_data:
redis_data: