-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
54 lines (47 loc) · 1.01 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
53
54
version: "3.7"
services:
flask:
build: ./flask
container_name: flask
environment:
- APP_NAME=FlaskApp
expose:
- 8080
depends_on:
- redis
nginx:
build: ./nginx
container_name: nginx
ports:
- "80:80"
- "443:443"
depends_on:
- flask
redis:
image: "redis:alpine"
container_name: redis_article
expose:
- 6379
celery_worker:
build: ./flask
container_name: celery_worker
environment:
- CELERY_BROKER_URL=redis://redis:6379/1
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- redis
command: "celery worker -A celery_worker.celery -l INFO"
celery_beat:
build: ./flask
container_name: celery_beat
depends_on:
- redis
command: "celery -A celery_worker.celery beat -l INFO"
celery_flower:
build: ./flask
container_name: celery_flower
depends_on:
- redis
command: "celery flower worker -A celery_worker.celery"
ports:
- "5555:5555"