feat: Umami/ntfy 可观测性栈与 WordPress AdSense 部署
This commit is contained in:
24
deploy/ntfy/docker-compose.yml
Normal file
24
deploy/ntfy/docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
# ntfy push notifications — bind localhost; Caddy at ntfy.nomadro.com
|
||||
services:
|
||||
ntfy:
|
||||
image: binwiederhier/ntfy:latest
|
||||
restart: unless-stopped
|
||||
command: serve
|
||||
ports:
|
||||
- "127.0.0.1:2586:80"
|
||||
environment:
|
||||
TZ: UTC
|
||||
volumes:
|
||||
- ./server.yml:/etc/ntfy/server.yml:ro
|
||||
- ntfy_cache:/var/cache/ntfy
|
||||
- ntfy_data:/var/lib/ntfy
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:80/v1/health | grep -q '\"healthy\":true' || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
volumes:
|
||||
ntfy_cache:
|
||||
ntfy_data:
|
||||
14
deploy/ntfy/server.yml
Normal file
14
deploy/ntfy/server.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
base-url: "https://ntfy.nomadro.com"
|
||||
listen-http: ":80"
|
||||
behind-proxy: true
|
||||
cache-file: "/var/lib/ntfy/cache.db"
|
||||
cache-duration: "12h"
|
||||
auth-file: "/var/lib/ntfy/auth.db"
|
||||
auth-default-access: "deny-all"
|
||||
enable-login: true
|
||||
attachment-cache-dir: "/var/lib/ntfy/attachments"
|
||||
attachment-total-size-limit: "100M"
|
||||
attachment-file-size-limit: "15M"
|
||||
attachment-expiry-duration: "3h"
|
||||
keepalive-interval: "45s"
|
||||
manager-interval: "1m"
|
||||
Reference in New Issue
Block a user