ntfy/stack.production.yml

32 lines
1.1 KiB
YAML

version: "3.8"
services:
ntfy:
image: git.nixc.us/colin/ntfy:production
volumes:
- /mnt/tank/persist/nixc.us/ntfy/production/data:/data
deploy:
replicas: 1
placement:
constraints:
- node.hostname == macmini14
labels:
- "us.nixc.autodeploy=true"
- "traefik.enable=true"
- "traefik.http.routers.production-ntfy_ntfy.tls=true"
- "traefik.http.services.production-ntfy_ntfy.loadbalancer.server.port=80"
- "traefik.http.routers.production-ntfy_ntfy.rule=Host(`ntfy.nixc.us`)"
- "traefik.http.routers.production-ntfy_ntfy.entrypoints=websecure"
- "traefik.http.routers.production-ntfy_ntfy.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.production-ntfy_ntfy.service=production-ntfy_ntfy"
- "traefik.docker.network=traefik"
# - 'traefik.http.routers.production-ntfy_ntfy.middlewares=authelia@docker'
networks:
- traefik
environment:
- NTFY_LISTEN_ADDR=0.0.0.0:80
- NTFY_DATA_DIR=/data
command:
- serve
networks:
traefik:
external: true