-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
40 lines (37 loc) · 1009 Bytes
/
docker-compose.yaml
File metadata and controls
40 lines (37 loc) · 1009 Bytes
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
services:
minio:
image: minio/minio:latest
container_name: minio
ports:
- "9000:9000" # S3-compatible API
- "9001:9001" # MinIO Console (open in browser)
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 10
pipeline:
build: .
container_name: pipeline
depends_on:
minio:
condition: service_healthy
environment:
MINIO_ENDPOINT: http://minio:9000
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
BUCKET_NAME: csb425
volumes:
- ./data:/app/data
- ./jobs:/app/jobs
working_dir: /app
# Override at runtime: docker compose run pipeline python jobs/demo.py
command: ["python", "jobs/demo.py"]
volumes:
minio_data: