Common Spec compliance

This commit is contained in:
Yax 2026-01-04 18:42:44 +01:00
parent 88d49c347c
commit 5dbcb524d3

View file

@ -1,29 +1,32 @@
name: 07-ntfy
services: services:
ntfy: ntfy:
container_name: ntfy container_name: ntfy
image: binwiederhier/ntfy image: binwiederhier/ntfy
command: command:
- serve - serve
volumes: volumes:
- ntfy-data:/var/cache/ntfy - ntfy-data:/var/cache/ntfy
environment: environment:
- TZ=${TZ} - TZ=${TZ}
- NTFY_BASE_URL=${NTFY_URL} - NTFY_BASE_URL=${NTFY_URL}
- NTFY_CACHE_FILE=/var/cache/ntfy/cache.db - NTFY_CACHE_FILE=/var/cache/ntfy/cache.db
- NTFY_AUTH_FILE=/var/cache/ntfy/auth.db - NTFY_AUTH_FILE=/var/cache/ntfy/auth.db
- NTFY_ATTACHMENT_CACHE_DIR=/var/cache/ntfy/attachments - NTFY_ATTACHMENT_CACHE_DIR=/var/cache/ntfy/attachments
- NTFY_AUTH_DEFAULT_ACCESS=deny-all - NTFY_AUTH_DEFAULT_ACCESS=deny-all
- NTFY_BEHIND_PROXY=${NTFY_BEHIND_PROXY} - NTFY_BEHIND_PROXY=${NTFY_BEHIND_PROXY}
- NTFY_ENABLE_LOGIN=true - NTFY_ENABLE_LOGIN=true
ports: ports:
- 8017:80 - 8017:80
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget -q --tries=1 http://ntfy:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] test:
interval: 60s - CMD-SHELL
timeout: 10s - wget -q --tries=1 http://ntfy:80/v1/health -O - | grep -Eo
retries: 3 '"healthy"\s*:\s*true' || exit 1
start_period: 40s interval: 60s
restart: unless-stopped timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
volumes: volumes:
ntfy-data: ntfy-data: