Files
compose/minio/docker-compose.yml
2025-08-15 18:51:17 +08:00

44 lines
1.5 KiB
YAML

name: minio
# RELEASE.2025-04-22T22-12-26Z is the last release that supports the old MinIO Web Console.
# See: (Implemented AGPL MinIO Object Browser simplified Console)[https://github.com/minio/object-browser/pull/3509]
# MinIO removes a ton of functionality from the interface of its community edition in this PR.
# If you want to use the new MinIO Web Console, you need to use the latest version.
services:
minio:
container_name: minio
image: "minio/minio:RELEASE.2025-04-22T22-12-26Z"
ports:
- "9000:9000"
- "9001:9001"
volumes:
- "./data:/data"
command: server --console-address ":9001" /data
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=12345678
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.minio-console.rule=Host(`console.example.com`)"
- "traefik.http.routers.minio-console.entrypoints=websecure"
- "traefik.http.routers.minio-console.service=minio-console"
- "traefik.http.services.minio-console.loadBalancer.server.port=9001"
- "traefik.http.routers.minio.rule=Host(`data.example.com`)"
- "traefik.http.routers.minio.entrypoints=websecure"
- "traefik.http.routers.minio.service=minio"
- "traefik.http.services.minio.loadBalancer.server.port=9000"
networks:
proxy:
external: true