self-hosted/bookstack/docker-compose.traefik.yml
Lorenzo Carbonell b26a148151 fix errors
2022-05-04 08:10:53 +02:00

21 lines
757 B
YAML

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