mirror of
https://github.com/isboyjc/GoProxy.git
synced 2026-05-07 04:52:56 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user