Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Postgres connection running with docker in the same host of WrenAI #1233

Open
BeraBravo opened this issue Jan 26, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@BeraBravo
Copy link

Describe the bug
I'm not able to use my Postgres database host reference running on

127.0.0.1

I'm running the docker container WrenAI in the same host

To Reproduce

I'm receiving this error

Host
127.0.0.1
Invalid host. Use 'host.docker.internal' on macOS/Windows to connect to the local database.

Expected behavior
To connect with docker running on host 127.0.0.1

Desktop (please complete the following information):

  • OS: Linux ubuntu 24
  • Browser Chrome

Wren AI Information

  • Version: latest
@BeraBravo BeraBravo added the bug Something isn't working label Jan 26, 2025
@cyyeh
Copy link
Member

cyyeh commented Jan 26, 2025

@BeraBravo

Hi! Would u like to try this method?

This was shared by our community member:
the solution was to run the docker network connect wrenai_wren mydb-container command which connected wrenAI container with my db container. then I could point wrenAI app to my postgres container name (as hostname) and port 5432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants