docs: 📝 update environment configuration and data directory documentation

- Revised `.env.example` to clarify data storage configuration for local development and Docker usage.
- Enhanced `DATA_DIRECTORY.md` with detailed instructions on data persistence, backup, and recovery using Docker Named Volumes.
- Updated `docker-compose.yml` to utilize Named Volume for data storage, ensuring data persistence across container lifecycles.
- Adjusted README to reflect changes in data directory management and deployment instructions.
This commit is contained in:
isboyjc
2026-03-29 05:17:56 +08:00
parent 1b9d1bfeaa
commit 0cff1ea6a6
4 changed files with 142 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ services:
- "${PROXY_HOST:-127.0.0.1}:${RANDOM_PORT:-7777}:7777" # 随机轮换
- "${WEBUI_HOST:-0.0.0.0}:${WEBUI_PORT:-7778}:7778" # WebUI有登录认证
volumes:
- ${DATA_DIR:-./data}:/app/data
- goproxy-data:/app/data
environment:
- TZ=${TZ:-Asia/Shanghai}
- DATA_DIR=/app/data
@@ -30,3 +30,6 @@ services:
interval: 30s
timeout: 5s
retries: 3
volumes:
goproxy-data: