-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.04 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
version: "3.7"
services:
web:
build:
context: ./api
dockerfile: Dockerfile
ports:
- "5001:5001"
depends_on:
- redis
volumes: ['./api:/api']
app:
build:
context: ./frontend
dockerfile: Dockerfile
links:
- "web"
depends_on:
- web
ports:
- "8051:8051"
volumes: ['./app:/app']
worker:
build:
context: ./celery-queue
dockerfile: Dockerfile
command: celery -A 'tasks' worker --loglevel=info
environment:
CELERY_BROKER_URL: redis://redis
CELERY_RESULT_BACKEND: redis://redis
depends_on:
- redis
volumes: ['./celery-queue:/queue']
monitor:
image: mher/flower
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- FLOWER_PORT=5555
ports:
- 5555:5555
depends_on:
- redis
- worker
volumes: ['./celery-queue:/queue']
redis:
image: redis:alpine
ports:
- "6379:6379"
# redisinsight:
# image: 'redislabs/redisinsight:latest'
# ports:
# - '8001:8001'