-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.development.yml
55 lines (55 loc) · 1.16 KB
/
docker-compose.development.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
53
54
55
version: "3.7"
services:
web:
build:
context: ./api
dockerfile: Dockerfile.dev
ports:
- "5001:5001"
environment:
FLASK_DEBUG: "on"
FLASK_APP: ./app.py
depends_on:
- redis
app:
build:
context: ./frontend
dockerfile: Dockerfile.dev
links:
- "web"
- "worker"
depends_on:
- web
- worker
ports:
- "8051:8051"
# volumes: ['./api:/api']
worker:
build:
context: ./celery-queue
dockerfile: Dockerfile.dev
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:
build:
context: ./celery-queue
dockerfile: Dockerfile.dev
ports:
- "5555:5555"
command: celery -A 'tasks' flower --loglevel=info
environment:
CELERY_BROKER_URL: redis://redis:6379/0
CELERY_RESULT_BACKEND: redis://redis:6379/0
depends_on:
- redis
- worker
# volumes: ['./celery-queue:/queue']
redis:
image: redis:alpine
ports:
- "6379:6379"