- Notifications
You must be signed in to change notification settings - Fork262
feat(cli): add shadow database host configuration#2989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:develop
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
- Add ShadowHost config option to control shadow database connection- Default to Hostname if ShadowHost not set
coveralls commentedDec 19, 2024
Pull Request Test Coverage Report forBuild 12411481695Details
💛 -Coveralls |
sweatybridge commentedDec 30, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The shadow db container is always created using dockerhost network mode, so 127.0.0.1 should resolve to your host network from inside the container. I suspect the root cause is something else. Could you try the following and let me know if there's any error? DOCKER_HOST=172.18.0.1 supabase db diff --db-url ... |
The scenario is the following:
db diff --db-url
...This does not work since the docker running the shadow database is created on host, and 127.0.0.1 for host network is not accessible from inside our container.
In my case, i set the following in the config.toml >>
shadow_host = "172.18.0.1"
and now db diff works.(open to alternative solutions!)