修复config.yaml的初始化逻辑

This commit is contained in:
puke
2025-11-05 10:57:06 +08:00
parent 1683f43423
commit ace406cd69
2 changed files with 30 additions and 12 deletions

View File

@@ -11,8 +11,9 @@ services:
ports:
- "8000:8000"
volumes:
# Mount config file (required)
- ./config.yaml:/app/config.yaml:ro
# Mount config file (required, read-write to allow saving from Web UI)
# IMPORTANT: Create config.yaml before first run: cp config.example.yaml config.yaml
- ./config.yaml:/app/config.yaml
# Mount data directories for persistence
# data/ contains: users/, bgm/, templates/, workflows/ (custom resources)
- ./data:/app/data
@@ -46,8 +47,9 @@ services:
ports:
- "8501:8501"
volumes:
# Mount config file (required)
- ./config.yaml:/app/config.yaml:ro
# Mount config file (required, read-write to allow saving from Web UI)
# IMPORTANT: Create config.yaml before first run: cp config.example.yaml config.yaml
- ./config.yaml:/app/config.yaml
# Mount data directories for persistence
# data/ contains: users/, bgm/, templates/, workflows/ (custom resources)
- ./data:/app/data