This commit is contained in:
Andrey Kondratev
2025-08-29 14:19:40 +05:00
parent 9defce960a
commit 521a9b087d
2 changed files with 25 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
# PostgreSQL Connection Fix
## Problem
App was trying to connect to PostgreSQL before it was ready, causing ECONNREFUSED errors.
## Solution
Modified docker-compose.yml to use proper depends_on with condition:
```yaml
depends_on:
traefik:
condition: service_started
postgres:
condition: service_healthy
```
This ensures the app waits for PostgreSQL healthcheck to pass before starting.
## Status
Fixed - ready for production deployment test.