-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
57 lines (52 loc) · 1.28 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
55
56
57
version: '3.4'
services:
worker:
build: .
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
restart: 'no'
volumes:
- ./app:/app
worker-minio:
build: .
image: *img
command: [celery, worker, --app=worker.app, --pool=gevent, --concurrency=20, --queues=minio, --loglevel=INFO]
environment: *env
depends_on:
- beat
- rabbitmq
restart: 'no'
volumes:
- ./app:/app
beat:
build: .
image: *img
command: [celery, beat, --app=worker.app, --loglevel=INFO]
environment: *env
depends_on:
- rabbitmq
restart: 'no'
volumes:
- ./app:/app
rabbitmq:
image: rabbitmq:3.7.8
minio:
image: minio/minio:RELEASE.2018-11-06T01-01-02Z
command: server /export
environment: *env
ports:
- 80:9000
volumes:
- minio:/data
volumes:
minio: