From 5dbcb524d30e39dfa20084389086091d7344af0d Mon Sep 17 00:00:00 2001 From: Yax Date: Sun, 4 Jan 2026 18:42:44 +0100 Subject: [PATCH] Common Spec compliance --- 07-ntfy/docker-compose.ntfy.yml | 57 +++++++++++++++++---------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/07-ntfy/docker-compose.ntfy.yml b/07-ntfy/docker-compose.ntfy.yml index 6d6f45d..fed5a2a 100644 --- a/07-ntfy/docker-compose.ntfy.yml +++ b/07-ntfy/docker-compose.ntfy.yml @@ -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: \ No newline at end of file + ntfy-data: \ No newline at end of file