services: ntfy: image: binwiederhier/ntfy:latest container_name: ntfy command: - serve environment: - TZ=Europe/Rome - NTFY_BASE_URL=https://ntfy.emanuelegori.uno - NTFY_CACHE_FILE=/var/lib/ntfy/cache.db - NTFY_BEHIND_PROXY=true - NTFY_ATTACHMENT_CACHE_DIR=/var/lib/ntfy/attachments # - NTFY_UPSTREAM_BASE_URL=https://ntfy.sh # Optional if you need push notifications on iOS - NTFY_AUTH_FILE=/var/lib/ntfy/auth.db - NTFY_AUTH_DEFAULT_ACCESS=deny-all - NTFY_ENABLE_LOGIN=false - NTFY_WEB_ROOT=disable # Disable WebGui volumes: - ./cache-ntfy:/var/cache/ntfy - ./etc-ntfy:/etc/ntfy - ./ntfy:/var/lib/ntfy # ports: # - 9282:9292 healthcheck: 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 restart: unless-stopped