forked from dj505/ArrowTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.development.yml
65 lines (59 loc) · 1.4 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
56
57
58
59
60
61
62
63
64
65
# ArrowTracker docker-compose
# Thanks to @mattkohl for the general idea
# https://github.com/mattkohl/docker-flask-celery-redis
version: "3.7"
services:
web:
build: .
container_name: web
environment:
FLASK_DEBUG: "on"
FLASK_APP: app.py
command: flask run --host=0.0.0.0 --port=5001
image: arrowtracker:latest
restart: always
ports:
- "5001:5001"
depends_on:
- redis
volumes: ['.:/api']
worker:
environment:
FLASK_APP: app.py
CELERY_BROKER_URL: redis://redis
CELERY_RESULT_BACKEND: redis://redis
command: celery -A app.celery worker -l info -E
image: arrowtracker:latest
depends_on:
- web
- redis
volumes: ['.:/api']
beat:
environment:
FLASK_APP: app.py
CELERY_BROKER_URL: redis://redis
CELERY_RESULT_BACKEND: redis://redis
command: celery -A app.celery beat -l info
image: arrowtracker:latest
depends_on:
- web
- redis
volumes: ['.:/api']
monitor:
container_name: monitor
image: arrowtracker:latest
ports:
- "5555:5555"
command: celery -A app.celery flower
environment:
CELERY_BROKER_URL: redis://redis:6379/0
CELERY_RESULT_BACKEND: redis://redis:6379/0
depends_on:
- redis
- worker
volumes: ['.:/api']
redis:
container_name: redis
image: redis:alpine
ports:
- "6379:6379"