4 months ago
keep Docker DB for local dev, but set Railway apiDATABASE_URL to a Railway-reachable DB URL for deploys.
4 Replies
4 months ago
stuck in a loop
4 months 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 • 4 months ago
4 months 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}}
4 months 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.
4 months ago
Railway can’t reach a local Docker DB unless your port is exposed to internet