Expose Postgres Database on an external port

I am running a Postgres database in a Repl (via psql) and want to access the database on the .repl.co domain.

To be more succinct, I want to expose a database I already have and available locally on port 5432 on an external port and have that forwarded by Replit. Port 3000 is already forwarded to port 80. Does anyone here know how to accomplish this/has done this before?

Ideally, I should be able to run the database in Repl and then connect via psql -h db.username. repl.co ....

3 Likes

From a post on AMC:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.