self-hosted/homer/docker-compose.traefik.yml
Lorenzo Carbonell 418aa832a5 homer
2023-02-18 19:47:19 +01:00

21 lines
717 B
YAML

version: '3.7'
services:
homer:
networks:
- proxy
labels:
- traefik.enable=true
- traefik.http.services.homer.loadbalancer.server.port=8080
- traefik.http.routers.homer.entrypoints=web
- traefik.http.routers.homer.rule=Host(`${FQDN}`)
- traefik.http.middlewares.homer-https-redirect.redirectscheme.scheme=websecure
- traefik.http.routers.homer.middlewares=homer-https-redirect
- traefik.http.routers.homer-secure.entrypoints=websecure
- traefik.http.routers.homer-secure.rule=Host(`${FQDN}`)
- traefik.http.routers.homer-secure.tls=true
- traefik.http.routers.homer-secure.tls.certresolver=letsencrypt
networks:
proxy:
external: true