diff --git a/README.md b/README.md index 4ea0517..e75cca2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ntfy/README.md b/ntfy/README.md new file mode 100644 index 0000000..ffa6b8b --- /dev/null +++ b/ntfy/README.md @@ -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/ diff --git a/ntfy/data/etc/server.yml b/ntfy/data/etc/server.yml new file mode 100644 index 0000000..02c87d8 --- /dev/null +++ b/ntfy/data/etc/server.yml @@ -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" diff --git a/ntfy/docker-compose.yml b/ntfy/docker-compose.yml new file mode 100644 index 0000000..059d251 --- /dev/null +++ b/ntfy/docker-compose.yml @@ -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