fix: correct POSTGRES_HOST momo-postgres → momo-db in docker-compose.yml
Some checks failed
CD Pipeline / deploy (push) Failing after 2m44s
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user