25 lines
398 B
Markdown
25 lines
398 B
Markdown
# NTFY
|
|
|
|
## Running ntfy
|
|
|
|
```bash
|
|
podman run \
|
|
-v ntfy:/var/cache/ntfy \
|
|
-v ./active/container_ntfy/server.yml:/etc/ntfy/server.yml:z \
|
|
-p 8001:80 \
|
|
-it \
|
|
docker.io/binwiederhier/ntfy:latest \
|
|
serve \
|
|
--cache-file /var/cache/ntfy/cache.db
|
|
```
|
|
|
|
## Testing with Curl
|
|
|
|
```bash
|
|
# Publish a topic
|
|
curl -d "Backup successful" localhost:8001/mytopic
|
|
|
|
# Listen on a topic
|
|
curl -s localhost:8001/mytopic
|
|
```
|