From e8e66b686815d25ef906b8ad765bd59b0b316a95 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 21 Oct 2023 16:35:23 -0500 Subject: [PATCH] fix yaml format --- .../posts/easy-push-notifications-with-ntfy/index.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/content/posts/easy-push-notifications-with-ntfy/index.md b/content/posts/easy-push-notifications-with-ntfy/index.md index 9905a3b..a04d9a5 100644 --- a/content/posts/easy-push-notifications-with-ntfy/index.md +++ b/content/posts/easy-push-notifications-with-ntfy/index.md @@ -1,7 +1,7 @@ --- title: "Easy Push Notifications With ntfy.sh" date: 2023-09-17 -# lastmod: 2023-09-17 +lastmod: 2023-10-21 description: "Deploying and configuring a self-hosted pub-sub notification handler, getting another server to send a notifcation when it boots, and integrating the notification handler into Home Assistant." featured: false toc: true @@ -58,15 +58,18 @@ services: command: - serve environment: - - TZ=UTC # optional: set desired timezone + - TZ=UTC # optional, set desired timezone volumes: - ./cache/ntfy:/var/cache/ntfy - ./etc/ntfy:/etc/ntfy - ./lib/ntf:/var/lib/ntfy ports: - 2586:80 - healthcheck: # optional: remember to adapt the host:port to your environment - test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:8080/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] + healthcheck: # optional, remember to adapt the host and port to your environment + test: [ + "CMD-SHELL", + "wget -q --tries=1 http://localhost:8080/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1" + ] interval: 60s timeout: 10s retries: 3