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:
parent
b6fb421316
commit
716b37041e
|
|
@ -16,7 +16,7 @@ services:
|
||||||
- APP_PORT=3099
|
- APP_PORT=3099
|
||||||
- DATABASE_URL=file:/app/data/snapshot.db
|
- DATABASE_URL=file:/app/data/snapshot.db
|
||||||
# PostgreSQL (备份目标 - 主业务库)
|
# PostgreSQL (备份目标 - 主业务库)
|
||||||
- PG_HOST=postgres
|
- PG_HOST=rwa-postgres
|
||||||
- PG_PORT=5432
|
- PG_PORT=5432
|
||||||
- PG_USER=${POSTGRES_USER:-rwa_user}
|
- PG_USER=${POSTGRES_USER:-rwa_user}
|
||||||
- PG_PASSWORD=${POSTGRES_PASSWORD}
|
- PG_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue