锁账后写保护与闭期补录留痕;重开须审批并按版本链再结;列表/导出改走真实 API。 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
37 lines
928 B
YAML
37 lines
928 B
YAML
# 测试环境部署编排。正式口令不得写入本文件。
|
|
# 使用:复制 .env.example 为 .env 后填写,再执行 ./deploy.sh
|
|
|
|
services:
|
|
caiwuzongzhang:
|
|
build:
|
|
context: ..
|
|
dockerfile: deploy/Dockerfile
|
|
image: caiwuzongzhang:test
|
|
container_name: caiwuzongzhang-test
|
|
ports:
|
|
- "4173:4173"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
APP_HOST: "0.0.0.0"
|
|
APP_PORT: "4173"
|
|
APP_DB_PATH: /app/data/app.db
|
|
APP_STORAGE_DIR: /app/data/files
|
|
volumes:
|
|
- ../data:/app/data
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
mem_limit: 512m
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:4173/', timeout=4)"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|