Added .env files to stacks
This commit is contained in:
5
ntfy/.env
Normal file
5
ntfy/.env
Normal file
@@ -0,0 +1,5 @@
|
||||
# ntfy - a simple HTTP-based pub-sub notification service
|
||||
# Environment variables for ntfy
|
||||
|
||||
TZ=Europe/Oslo
|
||||
PORT=9010
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user