-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
55 lines (53 loc) · 1.16 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
version: '3.3'
services:
db:
image: postgres
volumes:
- db_data:/var/lib/postgresql/data
rabbitmq:
image: "rabbitmq:3.7.8-alpine"
volumes:
- rabbitmqdb:/var/lib/rabbitmq
hostname: rabbitmq
backend:
build:
context: .
command: python3 manage.py runserver 0.0.0.0:3001
environment:
- DJANGO_SETTINGS_MODULE=global.settings.dev
- ENV=dev
volumes:
- .:/code
- /tmp/cnap:/transient
ports:
- "3001:3001"
depends_on:
- db
celery:
build:
context: .
command: celery -A global.celery_config:app worker -l info --logfile='/transient/logs/celery.log' --concurrency=20
environment:
- DJANGO_SETTINGS_MODULE=global.settings.dev
- ENV=dev
volumes:
- .:/code
- ./transient:/transient
depends_on:
- db
- rabbitmq
celery-beat:
build:
context: .
command: sh -c 'rm celerybeat.pid; celery -A global.celery_config:app beat -l info'
environment:
- DJANGO_SETTINGS_MODULE=global.settings.dev
- ENV=dev
volumes:
- .:/code
depends_on:
- db
- rabbitmq
volumes:
db_data:
rabbitmqdb: