mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-22 06:52:18 +00:00
fix yaml format
This commit is contained in:
parent
0941cc4a79
commit
1be8d36d13
1 changed files with 7 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: "Easy Push Notifications With ntfy.sh"
|
title: "Easy Push Notifications With ntfy.sh"
|
||||||
date: 2023-09-17
|
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."
|
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
|
featured: false
|
||||||
toc: true
|
toc: true
|
||||||
|
@ -58,15 +58,18 @@ services:
|
||||||
command:
|
command:
|
||||||
- serve
|
- serve
|
||||||
environment:
|
environment:
|
||||||
- TZ=UTC # optional: set desired timezone
|
- TZ=UTC # optional, set desired timezone
|
||||||
volumes:
|
volumes:
|
||||||
- ./cache/ntfy:/var/cache/ntfy
|
- ./cache/ntfy:/var/cache/ntfy
|
||||||
- ./etc/ntfy:/etc/ntfy
|
- ./etc/ntfy:/etc/ntfy
|
||||||
- ./lib/ntf:/var/lib/ntfy
|
- ./lib/ntf:/var/lib/ntfy
|
||||||
ports:
|
ports:
|
||||||
- 2586:80
|
- 2586:80
|
||||||
healthcheck: # optional: remember to adapt the host:port to your environment
|
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"]
|
test: [
|
||||||
|
"CMD-SHELL",
|
||||||
|
"wget -q --tries=1 http://localhost:8080/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"
|
||||||
|
]
|
||||||
interval: 60s
|
interval: 60s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
Loading…
Reference in a new issue