24 lines
647 B
YAML
24 lines
647 B
YAML
services:
|
|
ntfy:
|
|
image: binwiederhier/ntfy:latest
|
|
container_name: ntfy
|
|
user: "${PUID}:${PGID}"
|
|
ports:
|
|
- "${NTFY_PORT}:80"
|
|
volumes:
|
|
- /home/${NTFY_USERNAME}/ntfy/server.yml:/etc/ntfy/server.yml
|
|
- /home/${NTFY_USERNAME}/ntfy/data:/var/lib/ntfy
|
|
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:
|
|
memory: 512M
|
|
restart: unless-stopped |