abhitatachar2000 / dockerize-chromadb

This GitHub repository showcases an example of running the Chroma DB Server in a Docker container, accessible to another service. Link to chromadb documentation: https://docs.trychroma.com/
MIT License
8 stars 9 forks source link

not network connection (yml file change) #1

Closed nps798 closed 1 year ago

nps798 commented 1 year ago

Hi, thanks for sharing the dockerize chromadb setting I faced connection time out error when I compose your docker file

I figured out and succeed by add the Dockerfile a line network: host

so the file become... version: "3.0" services: application: build: context: . dockerfile: ./Dockerfile network: host ...

abhitatachar2000 commented 1 year ago

Hey Lin,

Thanks for noticing this.

There is a bridge network that I had already configured (by the name 'net') in the docker-compose (Line 30 in docker-compose). The same network is used by both the services - chroma and the application (Check lines 11 and 20).

And that works fine ( I just checked it out).

I'm adding a screenshot below for you to look over. image

However, I am glad that the change worked for you! Thanks again for noticing that issue and also for coming up and sharing the alternative solution.

Best regards, Abhi.