fix(nas): 固化容器 --init 铁律(防后台回测被清复发)
CI/CD / test (push) Successful in 9s
CI/CD / nas-deploy (push) Successful in 21s
CI/CD / nas-verify (push) Successful in 2s

- docker-compose.yml vnpy 服务加 init:true(供未来 compose 部署)
- three-env-code-promote.md 新增 §9:NAS 容器必须 --init 创建,
  手动重建命令+image(pre-init-rebuild勿用with-sqlite)+复发风险(手动rm+run)
根因:无init时docker exec nohup后台进程会话结束后被清(02 day0 4min被清)
ci-cd只restart不重建,--init保留;唯一丢--init路径=手动rm+run
This commit is contained in:
2026-08-01 08:49:32 +08:00
parent 3b3e42985e
commit 4fccfad4ca
2 changed files with 29 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ services:
dockerfile: docker/Dockerfile
container_name: sanguo-vnpy
restart: unless-stopped
init: true # tini 作 PID1, 防 docker exec nohup 后台进程被清(见 docs/three-env-code-promote.md §9)
# 容器名称
hostname: vnpy-server