forked from bstiel/celery-task-routing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (36 loc) · 900 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
version: '3.5'
services:
worker-feeds:
build: ./
image: &app app
restart: "no"
command: ["python", "app.py"]
env_file: &envfile
- env.env
command: ["celery", "worker", "--app=worker.app", "--concurrency=1", "--hostname=worker.feeds@%h", "--queues=feeds", "--loglevel=INFO"]
volumes:
- ./app:/app
depends_on:
- broker
worker-filters:
image: *app
restart: "no"
env_file: *envfile
command: ["celery", "worker", "--app=worker.app", "--concurrency=1", "--hostname=worker.filters@%h", "--queues=filters", "--loglevel=INFO"]
volumes:
- ./app:/app
depends_on:
- broker
flower:
image: zoomeranalytics/flower:0.9.1-4.0.2
restart: "no"
env_file: *envfile
ports:
- "5555:5555"
depends_on:
- broker
broker:
image: rabbitmq:3
env_file: *envfile
ports:
- 5672:5672