-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (46 loc) · 959 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
51
version: '3.7'
services:
web:
container_name: drf-api-project
build: .
command: python3 manage.py runserver 0.0.0.0:8000
env_file:
- ./.env
ports:
- "8000:8000"
volumes:
- .:/code
depends_on:
- rabbitmq
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.7-alpine
env_file:
- ./.env
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_USER:-guest}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD:-guest}
ports:
- "5672:5672"
- "15672:15672"
volumes:
- .:/code
celery-worker:
container_name: celery-worker-1
build: .
command: celery -A config worker -l info
volumes:
- .:/code
depends_on:
- rabbitmq
- web
celery-beat:
container_name: celery-beat
build: .
command: celery -A config beat -l info
volumes:
- .:/code
depends_on:
- rabbitmq
- web
- celery-worker