self-hosted/bookstack/docker-compose.traefik.yml

21 lines
757 B
YAML
Raw Normal View History

2022-04-29 06:46:05 +02:00
version: "3"
services:
bookstack:
networks:
- proxy
labels:
- traefik.enable=true
- traefik.http.services.bookstack.loadbalancer.server.port=80
2022-05-04 08:10:53 +02:00
- traefik.http.routers.bookstack.entrypoints=web
2022-04-29 06:46:05 +02:00
- traefik.http.routers.bookstack.rule=Host(`${FQDN}`)
2022-05-04 08:10:53 +02:00
- traefik.http.middlewares.bookstack-https-redirect.redirectscheme.scheme=websecure
2022-04-29 06:46:05 +02:00
- traefik.http.routers.bookstack.middlewares=bookstack-https-redirect
2022-05-04 08:10:53 +02:00
- traefik.http.routers.bookstack-secure.entrypoints=websecure
2022-04-29 06:46:05 +02:00
- 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