homelab/nodes/heimdall/ntfy/compose.yaml

25 lines
687 B
YAML

name: ntfy
services:
ntfy:
image: binwiederhier/ntfy:latest
container_name: ntfy
restart: unless-stopped
command:
- serve
volumes:
- /mnt/appdata/ntfy/data:/var/lib/ntfy
- /mnt/appdata/ntfy/server.yml:/etc/ntfy/server.yml:ro
networks:
- proxy-net
labels:
- "traefik.enable=true"
- "traefik.http.routers.ntfy.rule=Host(`ntfy.castaldifamily.com`)"
- "traefik.http.routers.ntfy.entrypoints=websecure"
- "traefik.http.routers.ntfy.tls=true"
- "traefik.http.routers.ntfy.tls.certresolver=cloudflare"
- "traefik.http.services.ntfy.loadbalancer.server.port=80"
networks:
proxy-net:
external: true