What is ntfy?
The best notification API is the one every tool already speaks: HTTP. ntfy turns a PUT request into a push notification - curl -d "backup done" https://your-domain/alerts - delivered to the iOS/Android apps and browsers subscribed to that topic, with priorities, attachments, and action buttons.
This template ships the secure posture by default: deny-all access with declarative bcrypt users in env (no CLI ceremony), so topics on your public domain are private from the first second. Everything in your project becomes a notifier - deploy scripts, uptime-kuma, changedetection, cron jobs.
What you get
- Notify via plain HTTP PUT/POST - every language, zero SDKs
- iOS/Android apps + web; priorities, attachments, action buttons
- Private by default: deny-all + declarative bcrypt users in env
- Message cache and attachment storage on small volumes
- One tiny Go binary, Apache-2.0
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
ntfy | notification server + web UI (:5000) | yes (auth: deny-all default) |
Before you deploy
NTFY_AUTH_USERSdeclarative users (name:bcryptHash:role)
NTFY_BASE_URLthe app’s https domain
Sizing and billing
A Go binary that idles in tens of megabytes - 256 MiB is generous. The cache volume bounds message/attachment history.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 2.05 GiB of volumes cost $0.15 per GiB a month ($0.31/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| ntfy.sh | Pro | $10/mo | 20k messages/day, 10 reserved topics ($5 Supporter tier below it) |
| Pushover | license | Usage-based | $4.99 one-time per platform; Teams $5/user/mo |
Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Why self-host instead of using ntfy.sh?
The public server is great for casual use, but topics are guess-protected, reserved names cost a subscription, and your alert content transits someone else’s box. Self-hosted: deny-all auth, your domain, unlimited topics.
How do my apps and templates send to it?
One HTTP request with basic auth or a token: curl -u user:pass -d "message" https://domain/topic. uptime-kuma and changedetection in this catalogue both have ntfy notification targets built in - point them at the in-project hostname.
How do phones receive instantly?
The Android app keeps a connection to your server (or uses its battery-friendly websocket mode); iOS uses a relay for wake-ups with content fetched from your server. Both are in the official app stores.