-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (48 loc) · 950 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
services:
backend:
build:
context: .
volumes:
- .:/code/
working_dir: /code
command: [ "python", "manage.py", "runserver", "0.0.0.0:5500" ]
ports:
- "5500:5500"
depends_on:
- db
- rabbitmq
env_file:
- .env
db:
image: postgres:9.6-alpine
ports:
- "5433:5432"
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: campaignerapi
POSTGRES_USER: campaignerapi
POSTGRES_PASSWORD: password
celery_beat:
build:
context: .
volumes:
- .:/code/
working_dir: /code
command: celery -A campaignerapi beat -l DEBUG
env_file:
- .env
celery_worker:
build:
context: .
volumes:
- .:/code/
working_dir: /code
command: celery -A campaignerapi worker -l DEBUG
env_file:
- .env
rabbitmq:
image: rabbitmq:3.8-management
volumes:
db-data:
driver: local