mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
add ntfy
This commit is contained in:
parent
38cd986dd4
commit
f3fb70e967
@ -427,13 +427,14 @@ A collection of delicious docker recipes.
|
||||
- [x] sonatype/nexus3
|
||||
- [x] nextcloud
|
||||
- [ ] jwilder/nginx-proxy
|
||||
- [x] luzifer/nginx-sso
|
||||
- [x] tiangolo/nginx-rtmp :camera:
|
||||
- [x] jupyter/notebook
|
||||
- [x] luzifer/nginx-sso
|
||||
- [x] illuspas/node-media-server :cn:
|
||||
- [x] jorijn/nostream
|
||||
- [x] scsibug/nostr-rs-relay
|
||||
- [x] notaitech/nudenet
|
||||
- [x] binwiederhier/ntfy
|
||||
- [x] odoo
|
||||
- [x] ohmyform
|
||||
- [x] api
|
||||
|
24
ntfy/README.md
Normal file
24
ntfy/README.md
Normal file
@ -0,0 +1,24 @@
|
||||
ntfy
|
||||
====
|
||||
|
||||
[ntfy][1] (pronounced "_notify_") is a simple HTTP-based pub-sub notification service.
|
||||
With ntfy, you can **send notifications to your phone or desktop via scripts** from
|
||||
any computer, **without having to sign up or pay any fees**.
|
||||
|
||||
```bash
|
||||
$ mkdir -p data/{etc,log,var}
|
||||
$ docker compose up -d
|
||||
$ docker compose exec nify sh
|
||||
>>> ntfy user add pi
|
||||
>>> ntfy user add --role=admin kev
|
||||
>>> ntfy user list
|
||||
>>> ntfy access pi test rw
|
||||
>>> ntfy access '*' test ro
|
||||
>>> ntfy access
|
||||
>>> ntfy token add --expires=1w --label=pi5 pi
|
||||
>>> ntfy token add --expires=1y --label=iphone kev
|
||||
>>> ntfy token list
|
||||
>>> exit
|
||||
```
|
||||
|
||||
[1]: https://docs.ntfy.sh/config/
|
20
ntfy/data/etc/server.yml
Normal file
20
ntfy/data/etc/server.yml
Normal file
@ -0,0 +1,20 @@
|
||||
#
|
||||
# - https://docs.ntfy.sh/config/
|
||||
# - https://github.com/binwiederhier/ntfy/blob/main/server/server.yml
|
||||
#
|
||||
|
||||
base-url: "https://ntfy.easypi.duckdns.org"
|
||||
listen-http: "0.0.0.0:2586"
|
||||
behind-proxy: true
|
||||
auth-default-access: "deny-all"
|
||||
auth-file: "/var/lib/ntfy/auth.db"
|
||||
cache-file: "/var/lib/ntfy/cache.db"
|
||||
attachment-cache-dir: "/var/lib/ntfy/attachments"
|
||||
log-level: "info"
|
||||
log-format: "json"
|
||||
log-file: "/var/log/ntfy.log"
|
||||
|
||||
#smtp-sender-addr: "email-smtp.us-east-2.amazonaws.com:587"
|
||||
#smtp-sender-user: "AKIDEADBEEFAFFE12345"
|
||||
#smtp-sender-pass: "Abd13Kf+sfAk2DzifjafldkThisIsNotARealKeyOMG."
|
||||
#smtp-sender-from: "ntfy@ntfy.sh"
|
14
ntfy/docker-compose.yml
Normal file
14
ntfy/docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
ntfy:
|
||||
image: binwiederhier/ntfy:v2.11.0
|
||||
command: serve
|
||||
ports:
|
||||
- "2586:2586"
|
||||
volumes:
|
||||
- ./data/etc:/etc/ntfy
|
||||
- ./data/log:/var/log/ntfy
|
||||
- ./data/var:/var/lib/ntfy
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user