heimdall/docker-compose.yml

38 lines
1.3 KiB
YAML

---
version: "3"
services:
heimdall:
image: linuxserver/heimdall:${HEIMDALL_VERSION}
restart: unless-stopped
environment:
- PUID=${HEIMDALL_PUID}
- PGID=${HEIMDALL_PGID}
- TZ=${HEIMDALL_TIMEZONE}
labels:
- traefik.enable=${TRAEFIK_ENABLED}
- traefik.docker.network=traefik
### Section HTTP
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
# redirect to HTTPS only
- traefik.http.routers.http-${TRAEFIK_ROUTER}.middlewares=http-to-https
- traefik.http.routers.http-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_MATCHRULE}`)
### Section HTTPS
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
# configure the exposed service
- traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=Host(`${TRAEFIK_MATCHRULE}`)
# of course, enable TLS and it's certificate provider
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED}
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=${TRAEFIK_CERTRESOLVER}
# specify a service so a custom port can be used
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT}
networks:
- traefik
volumes:
- ./config:/config
networks:
traefik:
external: true
name: ${TRAEFIK_NETWORK}