-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (76 loc) · 1.43 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
83
version: '3'
services:
nginx:
image: nginx:latest
hostname: nginx
ports:
- "8000:8000"
volumes:
# - ./src:/src
- ./config/nginx:/etc/nginx/conf.d
- ./src/static:/static
depends_on:
- web
db:
image: postgres
hostname: db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- "5432:5432"
redis:
image: redis
hostname: redis
rabbit:
hostname: rabbit
image: rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
ports:
- "5672:5672" # useful for debugging
- "15672:15672" # rabbitmq management plugin
web:
build:
context: .
dockerfile: Dockerfile
hostname: web
command: ./run_web.sh
restart: always
volumes:
- ./src:/app
- ./src/static:/static
links:
- db
- rabbit
- redis
expose:
- "8000"
celerybeat:
build:
context: .
dockerfile: Dockerfile
command: celery -A celeryconf beat -l INFO
volumes:
- ./src:/app
links:
- db
- rabbit
- redis
depends_on:
- rabbit
worker:
build:
context: .
dockerfile: Dockerfile
command: ./run_celery.sh
volumes:
- ./src:/app
links:
- db
- rabbit
- redis
depends_on:
- rabbit