From 5adbc3cb3c72c77aa7810bf57430fa2ee853b676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Fri, 24 Jul 2026 16:42:07 +0200 Subject: [PATCH] setup ntfy --- Caddyfile | 4 ++++ bootstrap.sh | 3 ++- compose.yml | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Caddyfile b/Caddyfile index 2ddbc83..2b0d756 100644 --- a/Caddyfile +++ b/Caddyfile @@ -25,3 +25,7 @@ rss.tomasrivera.ch { status.tomasrivera.ch { reverse_proxy uptime-kuma:3001 } + +ntfy.tomasrivera.ch { + reverse_proxy ntfy:80 +} diff --git a/bootstrap.sh b/bootstrap.sh index 40249d0..63f77f0 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -154,7 +154,8 @@ mkdir -p \ /opt/server/archivebox/archivebox-data \ /opt/server/freshrss \ /opt/server/filebrowser/database \ - /opt/server/uptime-kuma + /opt/server/uptime-kuma \ + /opt/server/ntfy sudo chown -R 1000:1000 /opt/server/filebrowser # somehow filebrowser cant acces it diff --git a/compose.yml b/compose.yml index d561280..f247460 100644 --- a/compose.yml +++ b/compose.yml @@ -82,6 +82,25 @@ services: ports: - "3001:3001" + ntfy: + image: binwiederhier/ntfy:latest + container_name: ntfy + restart: unless-stopped + + command: + - serve + + environment: + - TZ=Europe/Zurich + + volumes: + - /opt/server/ntfy:/var/cache/ntfy + + healthcheck: + test: ["CMD-SHELL", "wget -q --tries=1 -O- http://localhost:80/v1/health | grep -q 'healthy'"] + interval: 30s + timeout: 10s + retries: 3 volumes: caddy_data: caddy_config: