-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (38 loc) · 1.27 KB
/
docker-compose.yaml
File metadata and controls
43 lines (38 loc) · 1.27 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
name: ${PROJECT_NAME:-minio}
networks:
web:
name: web
external: true
volumes:
minio_data:
name: ${MINIO_DATA_VOLUME:-minio-data}
external: true
services:
minio:
image: quay.io/minio/minio:${MINIO_TAG:-latest}
container_name: minio
volumes:
- minio_data:/data
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-minioadmin}
command: server /data --console-address ":9001"
networks:
- web
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
labels:
- "traefik.enable=true"
# --- Router for the MinIO Console ---
- "traefik.http.routers.minio-console.rule=Host(`console.minio.local`)"
- "traefik.http.routers.minio-console.entrypoints=web"
- "traefik.http.routers.minio-console.service=service-console"
- "traefik.http.services.service-console.loadbalancer.server.port=9001"
# --- Router for the MinIO S3 API ---
- "traefik.http.routers.minio-s3.rule=Host(`s3.minio.local`)"
- "traefik.http.routers.minio-s3.entrypoints=web"
- "traefik.http.routers.minio-s3.service=service-s3"
- "traefik.http.services.service-s3.loadbalancer.server.port=9000"