mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
23 lines
595 B
Markdown
23 lines
595 B
Markdown
# ntfy
|
|
|
|
## Overview
|
|
|
|
* [Docker Hub](https://hub.docker.com/r/binwiederhier/ntfy)
|
|
* [Project](https://ntfy.sh/)
|
|
* [Docker Compose Example](https://github.com/binwiederhier/ntfy/blob/main/docker-compose.yml)
|
|
|
|
Proxy Port: 80
|
|
|
|
## Healthcheck
|
|
|
|
You can add a healthcheck to docker compose like so:
|
|
|
|
```yaml
|
|
healthcheck: # optional: remember to adapt the host:port to your environment
|
|
test: ["CMD-SHELL", "wget -q --tries=1 https://yourdomain.com/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
|
|
interval: 60s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
```
|