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
For this your Apache Superset should also running on your local system.
You can connect to your local database by using the docker daemon’s network bridge
docker0
. Checkifconfig docker0
and look forinet
.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?