forked from senko/dj-skeletor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
51 lines (49 loc) · 1005 Bytes
/
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
version: '2.1'
services:
base:
build: .
volumes:
- .:/project
environment:
- DEBUG=FALSE
- TEMPLATE_DEBUG=FALSE
web:
extends:
service: base
ports:
- 80:80
depends_on:
- base
- db
command: ./gunicorn_start
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 1m30s
timeout: 10s
retries: 3
links:
- "db:database"
celery:
extends:
service: base
environment:
- C_FORCE_ROOT=1
depends_on:
- base
- db
- amqp
command: supervisord -c /project/supervisord.conf
links:
- "db:database"
db:
image: postgres
volumes:
- ./data/postgresql/data:/var/lib/postgresql/data
amqp:
image: rabbitmq
ports:
- 5672:5672
volumes:
- ./data/rabbitmq/mnesia:/var/lib/rabbitmq/mnesia
environment:
- RABBITMQ_MNESIA_BASE=/var/lib/rabbitmq/mnesia