added user information and healthcheck
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# User ID the container process runs as
|
||||
PUID=1000
|
||||
|
||||
# Group ID the container process runs as
|
||||
PGID=1000
|
||||
|
||||
# Port to expose ntfy on the host
|
||||
NTFY_PORT=80
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ services:
|
||||
ntfy:
|
||||
image: binwiederhier/ntfy:latest
|
||||
container_name: ntfy
|
||||
user: "${PUID}:${PGID}"
|
||||
ports:
|
||||
- "${NTFY_PORT}:80"
|
||||
volumes:
|
||||
@@ -10,6 +11,12 @@ services:
|
||||
environment:
|
||||
- TZ=${TZ}
|
||||
command: serve
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -o '\"healthy\":true' || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
|
||||
Reference in New Issue
Block a user