fix(nas): 固化容器 --init 铁律(防后台回测被清复发)
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user