Added .env files to stacks

This commit is contained in:
2026-02-16 19:19:14 +01:00
parent 5e9f943996
commit 71a5db3b11
40 changed files with 211 additions and 89 deletions

5
ntfy/.env Normal file
View File

@@ -0,0 +1,5 @@
# ntfy - a simple HTTP-based pub-sub notification service
# Environment variables for ntfy
TZ=Europe/Oslo
PORT=9010

View File

@@ -7,7 +7,7 @@ services:
command:
- serve
environment:
- TZ=Europe/Oslo # optional: set desired timezone
- TZ=${TZ} # optional: set desired timezone
#user: UID:GID # optional: replace with your own user/group or uid/gid
volumes:
- /home/rcadmin/docker/ntfy/data/cache_ntfy:/var/cache/ntfy
@@ -15,7 +15,7 @@ services:
networks:
- ntfy
ports:
- 9010:80
- ${PORT}:80
healthcheck: # optional: remember to adapt the host:port to your environment
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
interval: 60s