mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:21:10 +02:00
🐛 fix(cd): fix postgres startup and health check issues in staging
Fixes two critical deployment issues: 1. Postgres Container Startup Failure: - Remove missing init.sql volume mount that caused postgres to fail - Postgres was trying to mount ./docker/postgres/init.sql which doesn't exist - Added REDIS_PASSWORD environment variable 2. Health Check SSH Issues: - Consolidated health checks into single SSH session - Increased wait time from 30s to 60s for services to fully initialize - Improved health check output with clear status messages - Added container status logging for debugging 3. Docker Compose Improvements: - Remove obsolete 'version: 3.9' field (deprecated in Compose v2) - Increase initial startup wait from 10s to 15s Changes to docker-compose.staging.yml: - Removed non-existent init.sql volume mount from postgres - Removed obsolete version field Changes to .github/workflows/cd-staging.yml: - Added REDIS_PASSWORD to environment variables - Consolidated health checks into single SSH session (fixes "ssh: command not found") - Increased wait times for service initialization - Improved logging and error messages This should fix the "dependency failed to start: container manacore-postgres-staging is unhealthy" error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f7986bc1a7
commit
cf2b6aaa2b
2 changed files with 51 additions and 26 deletions
|
|
@ -1,5 +1,3 @@
|
|||
version: '3.9'
|
||||
|
||||
services:
|
||||
# ============================================
|
||||
# Infrastructure Services
|
||||
|
|
@ -15,7 +13,7 @@ services:
|
|||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
# init.sql removed - not needed for staging
|
||||
ports:
|
||||
- "5432:5432"
|
||||
healthcheck:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue