services: ntfy: container_name: ntfy image: binwiederhier/ntfy command: - serve volumes: - ntfy-data:/var/cache/ntfy environment: - TZ=${TZ} - NTFY_BASE_URL=${NTFY_URL} - NTFY_CACHE_FILE=/var/cache/ntfy/cache.db - NTFY_AUTH_FILE=/var/cache/ntfy/auth.db - NTFY_ATTACHMENT_CACHE_DIR=/var/cache/ntfy/attachments - NTFY_AUTH_DEFAULT_ACCESS=deny-all - NTFY_BEHIND_PROXY=${NTFY_BEHIND_PROXY} - NTFY_ENABLE_LOGIN=true ports: - 8017:80 healthcheck: test: ["CMD-SHELL", "wget -q --tries=1 http://ntfy:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] interval: 60s timeout: 10s retries: 3 start_period: 40s restart: unless-stopped volumes: ntfy-data: