CoolifyPostgresDocker
Coolify: expose Postgres port so other services can reach it
Make it publicly available: checked
Public Port: 5432
When you add Postgres via a Coolify Service Stack, the container is only reachable within that stack's internal Docker network. Other Coolify-managed apps on the same host can't connect to it.
Fix
Open the Postgres service → Configuration → General
Make it publically available: enabled
Public Port: 5432
Redeploy the postgres service.
Connecting from another service
Use the Postgres URL (internal) value found under Configuration → General → Network of the postgres service in your coolify dashboard.
DATABASE_URL=postgresql://user:password@host:port/dbname