forked from marprin/flask-celery-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (41 loc) · 982 Bytes
/
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
version: '3'
services:
app:
build:
context: .
dockerfile: ./compose/app/Dockerfile
image: flask-tutorial:master
ports:
- "9300:9300"
env_file: .env
flower:
build:
context: .
dockerfile: ./compose/app/Dockerfile
image: flask-tutorial:master
ports:
- "9400:9400"
env_file: .env
command: celery flower -A registered_tasks.celery -l info --port=9400
celerybeat:
build:
context: .
dockerfile: ./compose/app/Dockerfile
image: flask-tutorial:master
env_file: .env
command: celery beat -A registered_tasks.celery -l info
worker:
build:
context: .
dockerfile: ./compose/app/Dockerfile
image: flask-tutorial:master
env_file: .env
command: celery worker -A registered_tasks.celery -l info
depends_on:
- celerybeat
redis:
image: redis:latest
restart: always
ports:
- '6379:6379'
command: redis-server --loglevel notice