-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (47 loc) · 1.13 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.4'
services:
redis:
image: redis:latest
hostname: redis
flaskcelerypregen:
image: flaskcelerypregen
container_name: flaskcelerypregen
build:
context: .
dockerfile: ./Dockerfile
command: ./scripts/run_server.sh
volumes:
- .:/flask-celery-pregen
ports:
- "5000:5000"
links:
- redis
worker:
build:
context: .
dockerfile: Dockerfile
command: ./scripts/run_celery.sh
volumes:
- .:/flask-celery-pregen
links:
- redis
environment:
- CELERY_BROKER=redis://redis:6379/0
- CELERY_BACKEND=redis://redis:6379/0
dashboard:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/flask-celery-pregen
command: flower -A app.resources.thumbnail_task.celery --port=5555 --broker=redis://redis:6379/0
ports:
- "5556:5555"
environment:
- FLASK_DEBUG=1
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- flaskcelerypregen
- redis
- worker