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

64 lines
2.2 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:
- '9000:9000'
- '9001:9001'
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 20:49:00 +01:00
MINIO_ROOT_USER: madmin # ändern
MINIO_ROOT_PASSWORD: hallowelt # ändern
2024-11-08 20:31:43 +01:00
command: server /data --console-address ":9001"
2024-11-08 20:57:04 +01:00
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
labels:
traefik.http.routers.nextcloud.rule: Host(`nextcloud.mgrote.net`)
traefik.enable: true
traefik.http.routers.nextcloud.tls: true
traefik.http.routers.nextcloud.tls.certresolver: resolver_letsencrypt
traefik.http.routers.nextcloud.entrypoints: entry_https
traefik.http.services.nextcloud.loadbalancer.server.port: 80
traefik.http.middlewares.nextcloud-webdav.replacepathregex.regex: "^/.well-known/ca(l|rd)dav"
traefik.http.middlewares.nextcloud-webdav.replacepathregex.replacement: "/remote.php/dav/"
traefik.http.middlewares.nextcloud-hsts.headers.stsincludesubdomains: false
traefik.http.middlewares.nextcloud-hsts.headers.stspreload: true
traefik.http.middlewares.nextcloud-hsts.headers.stsseconds: 15552001
traefik.http.middlewares.nextcloud-hsts.headers.isdevelopment: false
traefik.http.routers.nextcloud.middlewares: nextcloud-hsts,nextcloud-webdav
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
# traefik
# minio inr enobate aufgabe
# bug: composoe pull staret updated container nciht
# mcli paket installieren
#ldap? https://github.com/lldap/lldap/blob/main/example_configs/minio.md
# 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
#./mc alias set minio_lokal http://docker10.mgrote.net:9000 t8lwsheP7nuw0pI27gBO EmxR6Obfu7bpBUS53IWfvI3dXzwUriCbXHlung39
# remove midnehoght commander überall
# checkliste
# policies in wiki mit reihenfolge