# docker-compose.yml # Docker Hub: https://hub.docker.com/r/binwiederhier/ntfy # The WebUI can be found at http://: networks: : external: true services: ntfy: command: - serve container_name: ntfy environment: - TZ= healthcheck: # optional: remember to adapt the host:port to your environment test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] interval: 60s timeout: 10s retries: 3 start_period: 40s image: binwiederhier/ntfy: networks: - ports: - "80:80" # WebUI Port restart: unless-stopped user: ":" volumes: - ./server:/etc/ntfy - ./user:/var/lib/ntfy - ./cache:/var/cache/ntfy