-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
75 lines (69 loc) · 1.4 KB
/
docker-compose.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "3"
services:
web:
container_name: web
build:
context: ./src
dockerfile: web.dockerfile
ports:
- "5000:5000"
links:
- rabbitmq
depends_on:
- rabbitmq
environment:
- FLASK_ENV=development
volumes:
- ./src:/app
worker:
build:
context: ./src
dockerfile: worker.dockerfile
hostname: worker
entrypoint: celery
command: -A celery_app.celery worker --loglevel=info
volumes:
- ./src:/app
links:
- rabbitmq
depends_on:
- rabbitmq
monitor:
build:
context: ./src
dockerfile: monitor.dockerfile
hostname: monitor
ports:
- "5001:5001"
entrypoint: flower
command: -A celery_app.celery --broker=amqp://guest:guest@rabbitmq:5672/ --address=0.0.0.0 --port=5001
volumes:
- ./src:/app
links:
- rabbitmq
depends_on:
- rabbitmq
- worker
rabbitmq:
container_name: rabbitmq
image: rabbitmq
hostname: rabbitmq
volumes:
- ./cache/log:/var/log/rabbitmq
- ./cache:/var/lib/rabbitmq
mongodb:
container_name: mongodb
image: mongo
ports:
- "27017:27017"
volumes:
- ./db:/data/db
mongo-express:
image: mongo-express
restart: always
ports:
- "5002:8081"
environment:
ME_CONFIG_MONGODB_SERVER: "mongodb"
depends_on:
- mongodb