skip to Main Content

I can’t connect a local database to docker-compose running a Superset container.

I’m using Superset to show information of a database that is stored locally. While Superset is running as a container ran by docker-compose. Superset can’t access the database duo to the container network not being able to access the same IP address and port of localhost.

2

Answers


  1. For this your Apache Superset should also running on your local system.

    Login or Signup to reply.
  2. You can connect to your local database by using the docker daemon’s network bridge docker0. Check ifconfig docker0 and look for inet.

    Apache Superset’s documentation also mentions this here.
    More information on your underlying question: From inside of a Docker container, how do I connect to the localhost of the machine?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search