From b17b70325e5a007ecee89a7f74bfa440b55373d1 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 17 Jun 2025 01:32:06 -0500 Subject: [PATCH] added ntfy --- caddy/Caddyfile | 5 +++++ ntfy/docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 ntfy/docker-compose.yml diff --git a/caddy/Caddyfile b/caddy/Caddyfile index ef8f6d1..57ad98d 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -247,3 +247,8 @@ memos.home.domroese.eu:443 { } +ntfy.domr.ovh { + tls soenke@domroese.eu + reverse_proxy 192.168.1.65:8234 +} + diff --git a/ntfy/docker-compose.yml b/ntfy/docker-compose.yml new file mode 100644 index 0000000..a52e080 --- /dev/null +++ b/ntfy/docker-compose.yml @@ -0,0 +1,32 @@ +services: + ntfy: + image: binwiederhier/ntfy + container_name: ntfy + command: + - serve + environment: + TZ: Europe/Berlin # optional: set desired timezone + NTFY_BASE_URL: http://ntfy.domr.ovh + NTFY_AUTH_DEFAULT_ACCESS: deny-all + NTFY_BEHIND_PROXY: true + NTFY_ATTACHMENT_CACHE_DIR: /var/lib/ntfy/attachments + NTFY_ENABLE_LOGIN: true + NTFY_UPSTREAM_BASE_URL: https://ntfy.domr.ovh + labels: + kuma.hosting.group.name: 'Selfhosted' + + kuma.ntfy.http.name: 'Notify' + kuma.ntfy.http.parent_name: 'Selfhosted' + kuma.ntfy.http.url: 'https://ntfy.domr.ovh' + volumes: + - /home/soenke/docker-data/ntfy/cache:/var/cache/ntfy + - /home/soenke/docker-data/ntfy/etc:/etc/ntfy + ports: + - 8234:80 + healthcheck: # optional: remember to adapt the host:port to your environment + test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:8234/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] + interval: 60s + timeout: 10s + retries: 3 + start_period: 40s + restart: unless-stopped