fix: 修复 config.yaml 以只读方式挂载时容器启动失败 (#1113)

entrypoint 中 chown -R /app/data 在遇到 :ro 挂载的文件时报错退出,
添加错误容忍处理;同时去掉 compose 文件注释中的 :ro 建议。
This commit is contained in:
shaw
2026-03-18 14:11:51 +08:00
parent 21f349c032
commit 62a566ef2c
3 changed files with 4 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ services:
- sub2api_data:/app/data
# Optional: Mount custom config.yaml (uncomment and create the file first)
# Copy config.example.yaml to config.yaml, modify it, then uncomment:
# - ./config.yaml:/app/data/config.yaml:ro
# - ./config.yaml:/app/data/config.yaml
environment:
# =======================================================================
# Auto Setup (REQUIRED for Docker deployment)