# ntfy push notifications — bind localhost; Caddy at ntfy.nomadro.com services: ntfy: image: binwiederhier/ntfy:latest restart: unless-stopped command: serve ports: - "127.0.0.1:2586:80" environment: TZ: UTC volumes: - ./server.yml:/etc/ntfy/server.yml:ro - ntfy_cache:/var/cache/ntfy - ntfy_data:/var/lib/ntfy healthcheck: test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:80/v1/health | grep -q '\"healthy\":true' || exit 1"] interval: 30s timeout: 10s retries: 3 start_period: 20s volumes: ntfy_cache: ntfy_data: