Add ntfy service
This commit is contained in:
parent
018e3e2afa
commit
88d2ebec5f
2 changed files with 31 additions and 1 deletions
|
@ -6,4 +6,5 @@ PGID=1000
|
||||||
|
|
||||||
# apps
|
# apps
|
||||||
WALLABAG_URL=http://localhost
|
WALLABAG_URL=http://localhost
|
||||||
|
NTFY_URL=http://localhost:8017
|
||||||
|
NTFY_BEHIND_PROXY=true
|
||||||
|
|
29
07-ntfy/docker-compose.ntfy.yml
Normal file
29
07-ntfy/docker-compose.ntfy.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
services:
|
||||||
|
ntfy:
|
||||||
|
container_name: ntfy
|
||||||
|
image: binwiederhier/ntfy
|
||||||
|
command:
|
||||||
|
- serve
|
||||||
|
volumes:
|
||||||
|
- ntfy-data:/var/cache/ntfy
|
||||||
|
environment:
|
||||||
|
- TZ=${TZ}
|
||||||
|
- NTFY_BASE_URL=${NTFY_URL}
|
||||||
|
- NTFY_CACHE_FILE=/var/cache/ntfy/cache.db
|
||||||
|
- NTFY_AUTH_FILE=/var/cache/ntfy/auth.db
|
||||||
|
- NTFY_ATTACHMENT_CACHE_DIR=/var/cache/ntfy/attachments
|
||||||
|
- NTFY_AUTH_DEFAULT_ACCESS=deny-all
|
||||||
|
- NTFY_BEHIND_PROXY=${NTFY_BEHIND_PROXY}
|
||||||
|
- NTFY_ENABLE_LOGIN=true
|
||||||
|
ports:
|
||||||
|
- 8017:80
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "wget -q --tries=1 http://ntfy:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
|
||||||
|
interval: 60s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
ntfy-data:
|
Loading…
Add table
Reference in a new issue