librespeed/docker-compose-traefik.yml hinzugefügt

This commit is contained in:
2026-01-02 22:47:37 +00:00
parent 18fa8e3beb
commit 066bb1ad3a

View File

@@ -0,0 +1,44 @@
services:
librespeed:
image: lscr.io/linuxserver/librespeed:${LIBRESPEED_VERSION:-latest}
container_name: ${LIBRESPEED_CONTAINER_NAME:-librespeed}
restart: unless-stopped
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-Europe/Berlin}
# LibreSpeed Optionen
- PASSWORD=${LIBRESPEED_PASSWORD:-}
- CUSTOM_RESULTS=${LIBRESPEED_CUSTOM_RESULTS:-false}
- DB_TYPE=none
networks:
- proxy
labels:
- "traefik.enable=true"
# HTTPS Router
- "traefik.http.routers.librespeed.rule=Host(`${LIBRESPEED_HOSTNAME}`)"
- "traefik.http.routers.librespeed.entrypoints=websecure"
- "traefik.http.routers.librespeed.tls=true"
- "traefik.http.routers.librespeed.tls.certresolver=le"
- "traefik.http.routers.librespeed.service=librespeed"
# HTTP → HTTPS Redirect
- "traefik.http.routers.librespeed-insecure.rule=Host(`${LIBRESPEED_HOSTNAME}`)"
- "traefik.http.routers.librespeed-insecure.entrypoints=web"
- "traefik.http.routers.librespeed-insecure.middlewares=librespeed-redirect"
- "traefik.http.middlewares.librespeed-redirect.redirectscheme.scheme=https"
# Service Definition
- "traefik.http.services.librespeed.loadbalancer.server.port=80"
# Netzwerk
- "traefik.docker.network=proxy"
networks:
proxy:
external: true