services: librespeed: image: lscr.io/linuxserver/librespeed:${LIBRESPEED_VERSION:-latest} container_name: ${LIBRESPEED_CONTAINER_NAME:-librespeed} restart: unless-stopped environment: - TZ=${TZ:-Europe/Berlin} - ServerName=${SERVER_NAME:-librespeed} - TITLE=${TITLE:-LibreSpeed} # 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(`${SERVER_NAME}`)" - "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(`${SERVER_NAME}`)" - "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