-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (72 loc) · 1.71 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
75
76
77
78
79
80
81
82
---
version: '3'
volumes:
postgis:
redis:
services:
app:
restart: always
build:
context: .
dockerfile: ./compose/app/Dockerfile
command: /start.sh
env_file: .env
volumes:
- ./static/:/public/static/
- ./media/:/public/media/
expose:
- "5000"
depends_on:
- db
- redis
celeryworker:
restart: always
build:
context: .
dockerfile: ./compose/app/Dockerfile
command: celery -A v1.taskapp.celery worker -l INFO
env_file: .env
volumes:
- ./static/:/public/static/
- ./media/:/public/media/
depends_on:
- db
- redis
celerybeat:
restart: always
build:
context: .
dockerfile: ./compose/app/Dockerfile
command: celery -A v1.taskapp.celery beat -l INFO
env_file: .env
volumes:
- ./static/:/public/static/
- ./media/:/public/media/
depends_on:
- db
- redis
db:
restart: always
build:
context: .
dockerfile: ./compose/db/Dockerfile
env_file: .env
volumes:
- postgis:/var/lib/postgresql/data
redis:
restart: always
image: redis
volumes:
- redis:/data
nginx:
restart: always
build:
context: .
dockerfile: ./compose/nginx/Dockerfile
volumes:
- ./media:/public/media:ro
- ./static:/public/static:ro
ports:
- "80:80"
depends_on:
- app