Common Spec compliance
This commit is contained in:
parent
88d49c347c
commit
5dbcb524d3
1 changed files with 30 additions and 27 deletions
|
|
@ -1,29 +1,32 @@
|
|||
name: 07-ntfy
|
||||
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
|
||||
|
||||
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:
|
||||
ntfy-data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue