-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
72 lines (62 loc) · 1.77 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.1"
services:
rabbit:
image: rabbitmq:3.8-management-alpine
ports:
# Expose the RabbitMQ management UI
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: rabbit
RABBITMQ_DEFAULT_PASS: rabbit
postgres:
image: postgres:9.6-alpine
ports:
- '5432:5432'
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dagster_celery
minio:
image: minio/minio:RELEASE.2020-08-16T18-39-38Z
ports:
- '9000:9000'
volumes:
- ./.minio:/data
environment:
MINIO_ACCESS_KEY: 'minio'
MINIO_SECRET_KEY: 'miniosecret'
command: 'server /data'
flower:
image: mher/flower:0.9.5
ports:
- 5555:5555
command: flower --port=5555 --broker=amqp://rabbit:rabbit@rabbit:5672//
# generic worker
worker-generic:
build: .
image: dagster-celery-worker
volumes:
- ./workflows:/app
entrypoint: "dagster-celery worker start --loglevel=info --app=dagster_celery.app -y celeryconfig.yaml --name generic-worker"
environment:
DAGSTER_HOME: /app
# GPU worker (doesn't really use the GPU, just demonstrates worker selection from solids)
worker-gpu:
build: .
image: dagster-celery-worker
volumes:
- ./workflows:/app
entrypoint: "dagster-celery worker start --loglevel=info --app=dagster_celery.app -y celeryconfig.yaml -q gpu --name gpu-worker"
environment:
DAGSTER_HOME: /app
dagit:
build: .
image: dagster-celery-worker # Use the worker image for convenience
ports:
- 3000:3000 # Dagit
volumes:
- ./workflows:/app
entrypoint: dagit --host 0.0.0.0 -f dagster_pipeline.py
environment:
DAGSTER_HOME: /app