feat(deploy): 接入生产密钥与数据库迁移
Deploy Production / deploy (push) Successful in 1m42s

This commit is contained in:
yuxuanhui
2026-08-05 22:45:57 +08:00
parent d7d5ed8979
commit afdc5ca909
9 changed files with 139 additions and 33 deletions
+9 -1
View File
@@ -3,10 +3,18 @@ ZHIXING_SERVER_PORT=8000
ZHIXING_WEB_PORT=5173
ZHIXING_APP_ENV=development
ZHIXING_LOG_LEVEL=INFO
# Development: docker-compose.dev.yml starts an independent local PostgreSQL.
ZHIXING_POSTGRES_DB=zhixing
ZHIXING_POSTGRES_USER=zhixing
ZHIXING_POSTGRES_PASSWORD=zhixing
ZHIXING_DATABASE_URL=postgresql://zhixing:zhixing@postgres:5432/zhixing
# docker-compose.dev.yml uses the same local URL when this variable is unset.
# ZHIXING_DATABASE_URL=postgresql://zhixing:zhixing@postgres:5432/zhixing
# Production: use the existing 1Panel PostgreSQL container on the external
# Docker network. Replace <url-encoded-password>; do not use the development URL.
# The current 1Panel PostgreSQL has SSL disabled; use its stable network alias.
# ZHIXING_DATABASE_URL=postgresql://zhixing-system:<url-encoded-password>@postgresql:5432/zhixing-system?sslmode=disable
ZHIXING_TUSHARE_TOKEN=
ZHIXING_MARKET_DATA_CSV_ROOT=/app/data/market-data
API_UPSTREAM=http://server:8000