-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (70 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
72 lines (70 loc) · 1.48 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
65
66
67
68
69
70
71
72
version: '3.7'
services:
web:
build:
context: .
dockerfile: ./packaging/cypetulip/Dockerfile
working_dir: /opt/cypetulip
command: daphne -b 0.0.0.0 -p 8000 home.asgi:application
volumes:
- .:/opt/cypetulip
- media_volume:/var/cypetulip/
expose:
- 8000
env_file:
- ./packaging/cypetulip/.env.cypetulip.prod
depends_on:
- redis
links:
- redis
nginx:
build:
context: ./packaging/nginx
dockerfile: Dockerfile
env_file:
- ./packaging/nginx/.env.nginx.prod
volumes:
- media_volume:/var/cypetulip/
ports:
- 80:80
depends_on:
- web
redis:
image: redis
ports:
- "6379:6379"
volumes:
- ./redis-volume:/data
celery-beat:
build:
context: .
dockerfile: ./packaging/cypetulip/Dockerfile
command: celery -A home beat -l INFO
volumes:
- .:/opt/cypetulip
env_file:
- ./packaging/cypetulip/.env.cypetulip.prod
depends_on:
- web
- redis
celery-worker:
build:
context: .
dockerfile: ./packaging/cypetulip/Dockerfile
command: celery -A home worker -l INFO
volumes:
- .:/opt/cypetulip
- media_volume:/var/cypetulip/
env_file:
- ./packaging/cypetulip/.env.cypetulip.prod
depends_on:
- web
- redis
flower:
image: mher/flower
env_file:
- ./packaging/cypetulip/.env.cypetulip.prod
ports:
- 8888:8888
volumes:
media_volume: