railway wont connect to docker database
kamyleeret-dotcom
PROOP

22 days ago

keep Docker DB for local dev, but set Railway apiDATABASE_URL to a Railway-reachable DB URL for deploys.

$10 Bounty

4 Replies

kamyleeret-dotcom
PROOP

22 days ago

stuck in a loop


Railway
BOT

22 days ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway 22 days ago


If you’re DB is pointing to local Docker try adding PostgreSQL to your Railway project (Canvas → New → Database → PostgreSQL).In your API service → Variables, set:

DATABASE_URL = ${{Postgres.DATABASE_URL}}


dharmateja

If you’re DB is pointing to local Docker try adding PostgreSQL to your Railway project (Canvas → New → Database → PostgreSQL).In your API service → Variables, set:DATABASE_URL = ${{Postgres.DATABASE_URL}}

ahmedaatif
FREE

21 days ago

I'm facing a similar issue. my service is pointing to the internal URL of the postgres docker but the issue persists.


ahmedaatif

I'm facing a similar issue. my service is pointing to the internal URL of the postgres docker but the issue persists.

Railway can’t reach a local Docker DB unless your port is exposed to internet


Loading...