Connecting Replit to local postgres

Hi all,

Bit of an amateur here, but curious if anyone can help.

I hit the 10gb cap on the postgresql database available through Replit Core because one table in particular (which I need) makes up 9.5gb of data alone.

However, I don’t need that table to be always available - I just push aggregate views of that table to a cache / summary table that I’ll host on a site.

I set up Docker (first time!) and Postgres on local and plan to use that for most of my needs while using Replit Core’s Postgres database to host the summary tables.

However, I’m having a lot of trouble connecting to the local postgres from the files in my repl. Anyone have any advice on best practices?