fix(snapshot): PG_HOST 改用容器名 rwa-postgres 避免跨网络 DNS 冲突

snapshot-service 同时在 rwa-network 和 mpc-network 中,
服务名 "postgres" 在两个网络都存在导致解析到 mpc-postgres。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-24 04:02:01 -08:00
parent b6fb421316
commit 716b37041e
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ services:
- APP_PORT=3099
- DATABASE_URL=file:/app/data/snapshot.db
# PostgreSQL (备份目标 - 主业务库)
- PG_HOST=postgres
- PG_HOST=rwa-postgres
- PG_PORT=5432
- PG_USER=${POSTGRES_USER:-rwa_user}
- PG_PASSWORD=${POSTGRES_PASSWORD}