Skip to content

Commit 987b7a9

Browse files
committed
fix ntfy
1 parent bedf981 commit 987b7a9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

templates/compose/ntfy.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
services:
88
ntfy:
99
image: binwiederhier/ntfy
10-
container_name: ntfy
1110
command:
1211
- serve
1312
environment:
14-
- TZ=${TZ:-UTC}
13+
- SERVICE_FQDN_NTFY_80
1514
- NTFY_BASE_URL=${SERVICE_FQDN_NTFY}
15+
- TZ=${TZ:-UTC}
1616
- NTFY_CACHE_FILE=/var/cache/ntfy/cache.db
1717
- NTFY_AUTH_FILE=/var/lib/ntfy/auth.db
1818
- NTFY_UPSTREAM_BASE_URL=${UPSTREAM_BASE_URL:-https://ntfy.sh}
@@ -36,12 +36,11 @@ services:
3636
- NTFY_WEB_PUSH_PRIVATE_KEY=${NTFY_WEB_PUSH_PRIVATE_KEY}
3737
- NTFY_WEB_PUSH_EMAIL_ADDRESS=${NTFY_WEB_PUSH_EMAIL_ADDRESS}
3838
volumes:
39-
- ./cache:/var/cache/ntfy
40-
- ./db:/var/lib/ntfy/
39+
- ntfy-cache:/var/cache/ntfy
40+
- ntfy-db:/var/lib/ntfy/
4141
healthcheck:
4242
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
4343
interval: 60s
4444
timeout: 10s
4545
retries: 3
4646
start_period: 40s
47-
restart: unless-stopped

0 commit comments

Comments
 (0)