self-hosted/ntfy/docker-compose.traefik.yml
Lorenzo Carbonell ad0adbd9da ntfy
2022-04-30 09:08:51 +02:00

22 lines
696 B
YAML

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