fix: correct POSTGRES_HOST momo-postgres → momo-db in docker-compose.yml
Some checks failed
CD Pipeline / deploy (push) Failing after 2m44s

Compose env section was overriding the .env file fix with the wrong hostname,
causing psycopg2 name resolution failure after scheduler recreated via compose.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ogt
2026-04-20 08:46:42 +08:00
parent 4c8edecd12
commit cab57c4fb5

View File

@@ -105,7 +105,7 @@ services:
- DISABLE_LOGIN=true
# 資料庫設定: Docker 環境使用 PostgreSQL
- USE_POSTGRESQL=true
- POSTGRES_HOST=momo-postgres
- POSTGRES_HOST=momo-db
- POSTGRES_PORT=5432
- POSTGRES_USER=${POSTGRES_USER:-momo}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-wooo_pg_2026}
@@ -226,7 +226,7 @@ services:
- TZ=Asia/Taipei
# 資料庫設定: Docker 環境使用 PostgreSQL
- USE_POSTGRESQL=true
- POSTGRES_HOST=momo-postgres
- POSTGRES_HOST=momo-db
- POSTGRES_PORT=5432
- POSTGRES_USER=${POSTGRES_USER:-momo}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-wooo_pg_2026}