diff --git a/Ntfy/.env.example b/Ntfy/.env.example index f2d4082..44cb6f3 100644 --- a/Ntfy/.env.example +++ b/Ntfy/.env.example @@ -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 diff --git a/Ntfy/docker-compose-bind.yaml b/Ntfy/docker-compose-bind.yaml index d00f959..1f04eb3 100644 --- a/Ntfy/docker-compose-bind.yaml +++ b/Ntfy/docker-compose-bind.yaml @@ -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: