-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
81 lines (75 loc) · 2.04 KB
/
docker-compose.yaml
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
73
74
75
76
77
78
79
80
81
services:
postgis:
image: postgis/postgis:14-3.3
environment:
POSTGRES_DB: ${POSTGRES_DB:-dagster}
POSTGRES_USER: ${POSTGRES_USER:-dagster}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-dagsterpassword}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-dagster}"]
interval: 10s
timeout: 5s
retries: 5
minio:
image: minio/minio:RELEASE.2023-05-27T05-56-19Z
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minio}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-miniopassword}
volumes:
- minio_data:/data
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
healthcheck :
test: timeout 5s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
interval: 5s
retries: 1
start_period: 5s
timeout: 5s
minio-mc:
image: minio/mc
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
/usr/bin/mc mb dagster-logs;
/usr/bin/mc mb raw-data;
/usr/bin/mc mb clean-data;
echo 'MinIO setup completed successfully'
exit 0;
"
dagster:
build:
context: images
dockerfile: Dockerfile.dagster-webserver
environment:
DAGSTER_HOME: /app
POSTGRES_DB: ${POSTGRES_DB:-dagster}
POSTGRES_USER: ${POSTGRES_USER:-dagster}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-dagsterpassword}
POSTGRES_HOST: postgis
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minio}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-miniopassword}
MINIO_ENDPOINT: http://minio:9000
volumes:
- ./:/app
- ./dagster.local.yaml:/app/dagster.yaml
ports:
- "3000:3000"
depends_on:
postgis:
condition: service_healthy
minio:
condition: service_healthy
minio-mc:
condition: service_completed_successfully
command: ["dagster", "dev"]
volumes:
postgres_data:
minio_data: