2022-10-28 22:46:45 +02:00
|
|
|
---
|
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
minio:
|
|
|
|
image: minio/minio:latest
|
|
|
|
restart: always
|
2023-08-10 14:16:30 +02:00
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 4096
|
|
|
|
hard: 16000
|
2022-10-28 22:46:45 +02:00
|
|
|
environment:
|
|
|
|
- "MINIO_ROOT_USER={{ minio.user | mandatory }}"
|
|
|
|
- "MINIO_ROOT_PASSWORD={{ minio.password | mandatory }}"
|
|
|
|
- "MINIO_SERVER_URL=https://${MINIO_URL}"
|
|
|
|
- "MINIO_BROWSER_REDIRECT_URL=https://${DASHBOARD_URL}"
|
2023-12-23 17:18:47 +01:00
|
|
|
- "MINIO_KMS_SECRET_KEY=kms-key:{{ lookup('env', 'MINIO_KMS_SECRET_KEY') }}"
|
2022-10-28 22:46:45 +02:00
|
|
|
volumes:
|
|
|
|
- data:/data
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2024-01-22 18:56:17 +01:00
|
|
|
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_default"
|
2023-02-13 04:44:15 +01:00
|
|
|
- "traefik.http.routers.minio.rule=Host(`${MINIO_URL}`)||Host(`s3.unruhig.eu`)"
|
2022-10-28 22:46:45 +02:00
|
|
|
- "traefik.http.routers.minio.entryPoints=websecure"
|
|
|
|
- "traefik.http.services.minio.loadbalancer.server.port=9000"
|
2022-10-29 05:04:47 +02:00
|
|
|
- "traefik.http.routers.minio.service=minio"
|
2022-10-28 22:46:45 +02:00
|
|
|
- "traefik.http.routers.minio-dashboard.rule=Host(`${DASHBOARD_URL}`)"
|
|
|
|
- "traefik.http.routers.minio-dashboard.entryPoints=websecure"
|
|
|
|
- "traefik.http.services.minio-dashboard.loadbalancer.server.port=9001"
|
2022-10-29 05:04:47 +02:00
|
|
|
- "traefik.http.routers.minio-dashboard.service=minio-dashboard"
|
2022-10-28 22:46:45 +02:00
|
|
|
command: "server /data --console-address ':9001' --anonymous"
|
2023-11-11 23:28:48 +01:00
|
|
|
# healthcheck:
|
|
|
|
# test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
|
|
# interval: 30s
|
|
|
|
# timeout: 20s
|
|
|
|
# retries: 3
|
2022-10-28 22:46:45 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|
|
|
|
|
|
|
|
...
|