homeserver/docker-compose/minio/docker-compose.yml.j2

69 lines
2.5 KiB
Text
Raw Normal View History

2024-11-08 20:00:56 +01:00
services:
2024-11-08 20:05:38 +01:00
minio:
image: minio/minio:latest # add to renovate; https://github.com/renovatebot/renovate/issues/2438
container_name: minio
2024-11-08 20:00:56 +01:00
restart: unless-stopped
pull_policy: missing
2024-11-08 20:05:38 +01:00
ports:
2024-11-08 21:22:12 +01:00
# - '9000:9000' # S3
2024-11-08 21:10:36 +01:00
- '9001:9001' # WebUI
2024-11-08 20:00:56 +01:00
networks:
- traefik
2024-11-08 20:05:38 +01:00
volumes:
2024-11-08 20:54:17 +01:00
- data:/data # wird im "command" verwendet/gesetzt
2024-11-08 20:05:38 +01:00
environment:
2024-11-08 21:00:32 +01:00
MINIO_ROOT_USER: "{{ lookup('viczem.keepass.keepass', 'minio_admin_user', 'username') }}"
MINIO_ROOT_PASSWORD: "{{ lookup('viczem.keepass.keepass', 'minio_admin_user', 'password') }}"
2024-11-08 20:31:43 +01:00
command: server /data --console-address ":9001"
2024-11-08 21:16:53 +01:00
healthcheck: # https://github.com/minio/minio/issues/18389
2024-11-08 20:57:04 +01:00
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
labels:
traefik.enable: true
2024-11-08 21:16:53 +01:00
# s3
2024-11-08 21:31:20 +01:00
traefik.http.routers.app2.service: s3
2024-11-08 21:16:53 +01:00
traefik.http.routers.minio-s3.rule: Host(`s3.mgrote.net`)
traefik.http.routers.minio-s3.tls: true
traefik.http.routers.minio-s3.tls.certresolver: resolver_letsencrypt
traefik.http.routers.minio-s3.entrypoints: entry_https
traefik.http.services.minio-s3.loadbalancer.server.port: 9000
# WebUI
2024-11-08 21:31:20 +01:00
traefik.http.routers.app2.service: ui
2024-11-08 21:22:12 +01:00
traefik.http.routers.minio-ui.rule: Host(`s3.mgrote.net&&PathPrefix(`/ui`)`)
2024-11-08 21:16:53 +01:00
traefik.http.routers.minio-ui.tls: true
traefik.http.routers.minio-ui.tls.certresolver: resolver_letsencrypt
traefik.http.routers.minio-ui.entrypoints: entry_https
traefik.http.services.minio-ui.loadbalancer.server.port: 9001
traefik.http.routers.minio-ui.middlewares: minio-ui-ipallowlist
2024-11-08 21:17:06 +01:00
traefik.http.middlewares.minio-ui-ipallowlist.ipallowlist.sourcerange: 192.168.2.0/24,10.25.25.0/24
2024-11-08 21:16:53 +01:00
traefik.http.middlewares.minio-ui-ipallowlist.ipallowlist.ipstrategy.depth: 0 # https://doc.traefik.io/traefik/middlewares/http/ipallowlist/#ipstrategydepth
2024-11-08 20:00:56 +01:00
######## Networks ########
networks:
traefik:
external: true
2024-11-08 20:05:38 +01:00
######## Volumes ########
volumes:
data:
2024-11-08 20:50:32 +01:00
# todo
2024-11-08 21:00:32 +01:00
2024-11-08 20:50:32 +01:00
# minio inr enobate aufgabe
# bug: composoe pull staret updated container nciht
# mcli paket installieren
# client: wget https://dl.min.io/client/mc/release/linux-amd64/mc chmod +x mc
#erstelle user
#erstelle access und secrte_key
#erstelle policy
#weise policy user zu
2024-11-08 21:00:32 +01:00
#./mc alias set minio_lokal http://docker10.mgrote.net:9000 access secret
2024-11-08 20:50:32 +01:00
# remove midnehoght commander überall
# checkliste
# policies in wiki mit reihenfolge
2024-11-08 21:06:40 +01:00
# tarefi gitea 429?
2024-11-08 21:16:53 +01:00
# gui auch uber traefik mit szubnet beschrankung
2024-11-08 21:31:20 +01:00
# linter
# todo später automatisieren