Skip to content

Instantly share code, notes, and snippets.

@Edlavio
Last active January 6, 2026 12:25
Show Gist options
  • Select an option

  • Save Edlavio/5b517e1b9c18a8959ee42187c41de168 to your computer and use it in GitHub Desktop.

Select an option

Save Edlavio/5b517e1b9c18a8959ee42187c41de168 to your computer and use it in GitHub Desktop.
MinIO + Traefik + Docker Compose
services:
# after RELEASE.2025-04-22T22-12-26Z, minio removed most of the admin UI, if you want to use the admin UI.
minio:
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
volumes:
- minio-data:/data
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
- MINIO_BROWSER_REDIRECT_URL=${MINIO_BROWSER_REDIRECT_URL}
- MINIO_SERVER_URL=${MINIO_SERVER_URL}
command: server /data --console-address ":9001"
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public" # Certifique-se de usar a sua rede do traefik
# API (Porta 9000)
- "traefik.http.routers.minio-api.rule=Host(`s3.moco.ao`)"
- "traefik.http.routers.minio-api.entrypoints=websecure"
- "traefik.http.routers.minio-api.tls.certresolver=miniotls"
- "traefik.http.routers.minio-api.service=minio-api-svc"
- "traefik.http.services.minio-api-svc.loadbalancer.server.port=9000"
# Console (Porta 9001)
- "traefik.http.routers.minio-console.rule=Host(`files.moco.ao`)"
- "traefik.http.routers.minio-console.entrypoints=websecure"
- "traefik.http.routers.minio-console.tls.certresolver=miniotls"
- "traefik.http.routers.minio-console.service=minio-console-svc"
- "traefik.http.services.minio-console-svc.loadbalancer.server.port=9001"
expose:
- 9000
- 9001
volumes:
minio-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment