forked from bstiel/celery-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
58 lines (53 loc) · 1.35 KB
/
Copy pathdocker-stack.yml
File metadata and controls
58 lines (53 loc) · 1.35 KB
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
version: '3.4'
services:
worker:
image: &img worker
command: [celery, worker, --app=worker.app, --pool=gevent, --concurrency=20, --loglevel=INFO]
environment: &env
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672
- MINIO_HOST=minio:9000
- MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE
- MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- NEWSPAPER_URLS=https://www.theguardian.com,https://www.nytimes.com
- NEWSPAPER_SCHEDULE=300
depends_on:
- beat
- rabbitmq
deploy:
restart_policy:
condition: 'none'
worker-minio:
image: *img
command: [celery, worker, --app=worker.app, --pool=gevent, --concurrency=20, --queues=minio, --loglevel=INFO]
environment: *env
depends_on:
- beat
- rabbitmq
- minio
deploy:
restart_policy:
condition: 'none'
beat:
image: *img
command: [celery, beat, --app=worker.app, --loglevel=INFO]
environment: *env
depends_on:
- rabbitmq
deploy:
restart_policy:
condition: 'none'
rabbitmq:
image: rabbitmq:3.7.8
minio:
image: minio/minio:RELEASE.2018-11-06T01-01-02Z
command: server /data
environment: *env
ports:
- 80:9000
volumes:
- minio:/data
deploy:
placement:
constraints: [node.role == manager]
volumes:
minio: