lmartin12L
Convex Community2mo ago
2 replies
lmartin12

Hi everyone,

Hi everyone,

I’m running Convex self-hosted using Coolify, and my database (PostgreSQL) is also hosted in Coolify, within the same environment.

Has anyone successfully connected Convex self-hosted to a database hosted in Coolify?

I’m currently unable to get Convex to connect to the database. I’ve tried configuring the connection using environment variables (POSTGRES_URL and/or DATABASE_URL), but the service still can’t establish the connection.

If you’ve done this setup before, I’d really appreciate any guidance on:
Network configuration between services in Coolify
Correct database host to use (service name vs container IP vs external URL)
Required ports or internal networking settings
Any Convex-specific configuration needed for external databases
Was this page helpful?