---
title: "Deploy ntfy Private Notifications with Persistent Data"
description: "Private push notifications with generated admin and persistent storage."
category: "Observability"
url: https://railway.com/deploy/ntfy-private-notifications-with-persiste
---

# Deploy ntfy Private Notifications with Persistent Data

Private push notifications with generated admin and persistent storage.

**[Deploy ntfy Private Notifications with Persistent Data on Railway](https://railway.com/template/ntfy-private-notifications-with-persiste)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/ntfy-private-notifications-with-persiste/manifest.json

- **Creator:** dankeewithtwoes's Projects
- **Category:** Observability
- **Total deploys:** 2

## Template content

### ntfy

- **Image:** binwiederhier/ntfy@sha256:803b2aaeb94df76c8b32ecd91039dc80b0fddb7041dcaf082b33bcdfd4ba39ad
- **Start command:** `/bin/sh -c 'mkdir -p /var/lib/ntfy/attachments && ntfy user add --ignore-exists --role=admin admin && exec ntfy serve'`
- **Health check:** /v1/health
- **Public domain:** Yes

## Documentation

# Deploy and Host ntfy Private Notifications with Persistent Data on Railway

Private push notifications with generated admin and persistent storage.

## About Hosting ntfy Private Notifications with Persistent Data

Deploying this template creates ntfy in your Railway project. The application receives an HTTPS domain automatically. Database and Redis services, when included, use private networking and generated credentials. Persistent data is stored on the included volumes or object storage, so application redeploys do not discard it.

## Why Deploy ntfy Private Notifications with Persistent Data on Railway

- Official ntfy image and an automatically created admin account.
- Anonymous topic access is denied; public signup is disabled.
- Authentication, cached messages and attachments survive redeploys on one volume.
- An automatic HTTPS domain and ntfy health endpoint are configured.

## Common Use Cases

- Receive backup and scheduled-job completion messages.
- Deliver private infrastructure or monitoring alerts.
- Send application events to phone or CLI subscribers.

## Dependencies for ntfy Private Notifications with Persistent Data

- A Railway account and a plan with capacity for 1 service(s).
- Included services: ntfy.
- 1 persistent volume(s), provisioned by this template.
- External integrations, mail delivery and your own business data are configured after installation as needed.

## First launch

1. Deploy and wait for the service to be healthy.
2. Open the generated domain and log in as admin using NTFY_PASSWORD from Railway service variables.
3. Add your server to an ntfy client and subscribe to a topic.
4. Create a separate user or access token for each integration and give it only the topic permissions it needs.

## Example

Set the URL and credential variables locally to your own deployment values.

```sh
curl --fail --user "admin:$NTFY_PASSWORD" --data "Backup completed" "$NTFY_URL/backups"
```

## Operations

The initial password variable bootstraps a new auth database; changing the variable later does not reset an existing user. Use ntfy user change-pass or the supported account controls for password rotation. Back up the volume. Instant iOS delivery uses the configured upstream ntfy.sh relay. Browser Web Push needs additional VAPID configuration; ordinary web subscriptions and Android/CLI clients do not require it.

Images are pinned to verified upstream image digests captured on 2026-10-17. Review upstream release notes, back up persistent data and update the image deliberately when upgrading. Railway charges the deployer for running services, storage and network usage.

## Support and upstream

For Railway template wiring or deployment issues, use the discussion/support link on this template page. Include service names and redacted logs; omit passwords and tokens. Application documentation:

[Authentication, clients and configuration](https://docs.ntfy.sh/config/) · [ntfy source](https://github.com/binwiederhier/ntfy)


## Similar templates

- [Rootprint](https://railway.com/deploy/rootprint-1) — Open-source logs and traces with full-text search on object-storage.
- [Pyroscope profiling](https://railway.com/deploy/pyroscope-profiling) — Protected continuous profiling with durable Pyroscope storage.
- [SigOnly](https://railway.com/deploy/sigonly) — Deploy SigNoz with a working demo app & config in one click

Open this page in a browser: https://railway.com/deploy/ntfy-private-notifications-with-persiste
