GithubHelp home page GithubHelp logo

Comments (7)

alco avatar alco commented on May 31, 2024 1

@p7gg Thanks for the video!

So you run both Supabase and Electric as Docker containers, but they both end up on separate virtual networks. Docker creates an isolated network for each container, or for a set of containers if you're using docker compose. Containers on the same network can see each other but they cannot see containers on other networks.

In your case, Supabase's localhost, or 127.0.0.1, is different from Electric's localhost. You can think of them both as if they're running on separate machines.

If Supabase exposes its port to the host OS, your Electric should be able to connect to it if you add this key under your electric service definition in the compose file:

extra_hosts:
  - "host.docker.internal:host-gateway"

and replace 127.0.0.1 with host.docker.internal in DATABASE_URL.


If you have further questions, please start a new thread in the #help-and-support channel in our Discord community or a new GitHub discussion here.

from electric.

p7gg avatar p7gg commented on May 31, 2024

same problem

from electric.

alco avatar alco commented on May 31, 2024

Hey @masylum and @p7gg. You must have followed an older version of the guide. The ELECTRIC_INBOUND_MODE variable has since been renamed to ELECTRIC_WRITE_TO_PG_MODE. See the up-to-date guide here.

from electric.

p7gg avatar p7gg commented on May 31, 2024

@alco I believe i had the right variable, although i had the same error.
I'll try and record a video, since I was running everything locally: supabase and electricsql

from electric.

p7gg avatar p7gg commented on May 31, 2024

Sorry for the delay, got slumped with work, @alco .
Realized that it wasn't the same error, but still getting one...
Might be because of my lack of docker knowledge tho. any pointers is greatly appreciated

issue-electricsql.mp4

from electric.

masylum avatar masylum commented on May 31, 2024

Hey @masylum and @p7gg. You must have followed an older version of the guide. The ELECTRIC_INBOUND_MODE variable has since been renamed to ELECTRIC_WRITE_TO_PG_MODE. See the up-to-date guide here.

This fixed the issue. Lesson learned, reload the tabs once in a while! Thanks for the support and this awesome project

from electric.

p7gg avatar p7gg commented on May 31, 2024

@alco thank you very much.
Ran into another error, but I'll just reach out to the discord community, if I don't get a solution i'll post in the discussions for sure.

from electric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.