-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 903 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
version: "3.5"
services:
app:
build: .
command: "python -u run.py"
ports:
- "${APP_HOST_PORT}:5000"
volumes:
- "./:/app"
networks:
- "backend"
depends_on:
- "db"
db:
image: "mongo"
ports:
- "${DB_HOST_PORT}:27017"
volumes:
- "./db/:/data/db"
networks:
- "backend"
rabbit:
image: "rabbitmq:3.6.1"
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
ports:
- "${RABBITMQ_HOST_PORT}:5672"
- "${RABBITMQ_MANAGEMENT_PORT}:15672"
networks:
- "backend"
worker:
build: .
command: "celery worker -B -A task_manager.celery_worker.celery --loglevel=DEBUG"
depends_on:
- "rabbit"
- "app"
restart: "always"
volumes:
- "./:/app"
networks:
- "backend"
networks:
backend: