mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
refactored all to dev
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# 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
|
||||
```
|
||||
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
ntfy:
|
||||
image: ${NTFY_IMAGE:-binwiederhier/ntfy}
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- serve
|
||||
environment:
|
||||
- NTFY_BASE_URL=${NTFY_BASE_URL:-http://localhost}
|
||||
- NTFY_CACHE_FILE=${NTFY_CACHE_FILE:-/var/lib/ntfy/cache.db}
|
||||
- NTFY_AUTH_FILE=${NTFY_AUTH_FILE:-/var/lib/ntfy/auth.db}
|
||||
- NTFY_AUTH_DEFAULT_ACCESS=${NTFY_AUTH_DEFAULT_ACCESS:-deny-all}
|
||||
- NTFY_BEHIND_PROXY=${NTFY_BEHIND_PROXY:-true}
|
||||
- NTFY_ATTACHMENT_CACHE_DIR=${NTFY_ATTACHMENT_CACHE_DIR:-/var/lib/ntfy/attachments}
|
||||
- NTFY_ENABLE_LOGIN=${NTFY_ENABLE_LOGIN:-true}
|
||||
- TZ=${TZ:-UTC}
|
||||
volumes:
|
||||
- ${VOL_PATH:-./data}/ntfy-cache/ntfy:/var/cache/ntfy
|
||||
- ${VOL_PATH:-./data}/ntfy:/etc/ntfy
|
||||
- ${VOL_PATH:-./data}/ntfy-var:/var/lib/ntfy
|
||||
@@ -0,0 +1,13 @@
|
||||
COOKBOOK=/git/docker-compose-cookbooks #HELP: cookbooks
|
||||
VOL_PATH=./data
|
||||
TZ=UTC
|
||||
|
||||
# ntfy
|
||||
NTFY_IMAGE=binwiederhier/ntfy
|
||||
NTFY_BASE_URL=http://localhost
|
||||
NTFY_CACHE_FILE=/var/lib/ntfy/cache.db
|
||||
NTFY_AUTH_FILE=/var/lib/ntfy/auth.db
|
||||
NTFY_AUTH_DEFAULT_ACCESS=deny-all
|
||||
NTFY_BEHIND_PROXY=true
|
||||
NTFY_ATTACHMENT_CACHE_DIR=/var/lib/ntfy/attachments
|
||||
NTFY_ENABLE_LOGIN=true
|
||||
Reference in New Issue
Block a user