Add ntfy.sh

This commit is contained in:
Dries Augustyns
2025-12-04 17:34:24 +01:00
parent 726493a1ed
commit c114feb32e
15 changed files with 1070 additions and 19 deletions
+31
View File
@@ -82,6 +82,28 @@ services:
networks:
- plunk
ntfy:
image: binwiederhier/ntfy:latest
container_name: plunk-ntfy
restart: unless-stopped
command: serve
environment:
- TZ=UTC
volumes:
- ntfy_cache:/var/cache/ntfy
- ntfy_etc:/etc/ntfy
ports:
# Expose ntfy web UI and API
- "${NTFY_PORT:-8080}:80"
healthcheck:
test: [ "CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- plunk
# ============================================
# Plunk Application
# ============================================
@@ -153,6 +175,9 @@ services:
S3_PUBLIC_URL: ${S3_PUBLIC_URL:-http://localhost:9000/uploads}
S3_FORCE_PATH_STYLE: ${S3_FORCE_PATH_STYLE:-true}
# Notifications (ntfy.sh)
NTFY_URL: ${NTFY_URL:-http://ntfy/plunk-notifications}
# SMTP Server (for sending emails via SMTP)
# SMTP_DOMAIN is required to select the correct certificate from Traefik acme.json
# If using PEM files, SMTP_DOMAIN is optional
@@ -185,6 +210,8 @@ services:
condition: service_healthy
minio:
condition: service_healthy
ntfy:
condition: service_healthy
healthcheck:
# Check nginx is running and responding
@@ -206,6 +233,10 @@ volumes:
driver: local
plunk_data:
driver: local
ntfy_cache:
driver: local
ntfy_etc:
driver: local
networks:
plunk: