Add feedback service, reminder diagnostics and smooth week transitions

This commit is contained in:
Codex
2026-10-14 15:53:21 +08:00
parent c5e736b39b
commit 1f06e3741e
40 changed files with 3982 additions and 25 deletions
+34
View File
@@ -0,0 +1,34 @@
name: app-feedback
services:
feedback:
build: .
restart: unless-stopped
env_file:
- .env
ports:
- "127.0.0.1:18080:8000"
volumes:
- feedback-data:/app/data
read_only: true
tmpfs:
- /tmp:size=256m,mode=1777
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: 512m
cpus: 1.0
pids_limit: 64
stop_grace_period: 180s
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=3).read()"]
interval: 30s
timeout: 5s
retries: 3
logging:
driver: json-file
options:
max-size: "5m"
max-file: "2"
volumes:
feedback-data: