Updates Docker config path and ignores system files

Changes Docker volume mount path from /app/configs to /configs for simpler container structure.

Adds .DS_Store to gitignore for macOS compatibility and normalizes .idea/ entry to .idea for consistency.

#20
This commit is contained in:
王锦强
2025-08-06 22:43:02 +08:00
parent 8be8c6f721
commit 66421eebec
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@@ -25,4 +25,5 @@ go.work.sum
# env file
.env
.idea/
.DS_Store
.idea

View File

@@ -86,12 +86,12 @@ curl -X POST "http://localhost:8080/v1/audio/speech" \
docker run -d -p 9000:9000 -e PORT=9000 --name=tts zuoban/zb-tts
# 使用配置文件
docker run -d -p 8080:8080 -v /path/to/config.yaml:/app/configs/config.yaml --name=tts zuoban/zb-tts
docker run -d -p 8080:8080 -v /path/to/config.yaml:/configs/config.yaml --name=tts zuoban/zb-tts
```
### 配置文件详解
TTS 服务使用 YAML 格式的配置文件,默认位置为 `/app/configs/config.yaml`。以下是配置文件的主要选项:
TTS 服务使用 YAML 格式的配置文件,默认位置为 `/configs/config.yaml`。以下是配置文件的主要选项:
```yaml
server: