Connecting Electric to local Supabase dev setup #765
-
Hello, I'm trying to setup Electric locally and connecting it to Supabase that's also running on local. I tried to run the sync service following this guide: configuring-electric-to-connect-to-supabase but it cannot connect to the postgres service. Following the supabase guide on configuring-electric-to-connect-to-supabase works using an actual supabase project. Are there steps I'm missing in order to connect to a local supabase setup? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I believe the issue could be that you are using 127.0.0.1 for the database url in the electric container. From the container point of view, that port is not accessible on that host. |
Beta Was this translation helpful? Give feedback.
-
👋 we've been working the last month on a rebuild of the Electric server over at a temporary repo https://github.com/electric-sql/electric-next/ You can read more about why we made the decision at https://next.electric-sql.com/about We're really excited about all the new possibilities the new server brings and we hope you'll check it out soon and give us your feedback. We're now moving the temporary repo back here. As part of that migration we're closing all the old issues, PRs, and discussions. We really appreciate you taking the time to start this discussion! If it's still relevant in the new system, please reopen. |
Beta Was this translation helpful? Give feedback.
I believe the issue could be that you are using 127.0.0.1 for the database url in the electric container. From the container point of view, that port is not accessible on that host.
You can try changing the IP to the IP of your machine (192.168.x.x)