sirocco-ventures / raggenie

RAGGENIE: An open-source, low-code platform to build custom Retrieval-Augmented Generation (RAG) Copilets with your own data. Simplify AI development with ease!
https://www.raggenie.com
MIT License
137 stars 52 forks source link

Add docker-compose-yml #102

Closed leinadsened closed 1 month ago

leinadsened commented 1 month ago

Add Docker Compose for running front- and back-end After running "docker-compose up --build" the app should be available on localhost:8080

ashmilhussain commented 1 month ago

I tried running this, but I’m encountering an error.

Screenshot 2024-10-08 at 10 44 23 AM

In the case of Docker Compose, we already know the backendUrl. How should we handle this?

We don’t need an environment variable in this case, but it shouldn’t result in a failure either.

@agberoz have a look

leinadsened commented 1 month ago

I've found the problem, I had an older version of the ui dockerfile: image

To address the issue, I could add .env to frontend volumes, would that be a good fix?

sethumadhavan-k commented 1 month ago

@leinadsened Set the environment variable as a build argument in the Dockerfile and pass it through the Docker Compose file.

leinadsened commented 1 month ago

Hey @sethumadhavan-k I've updated both files, please let me know what you think. I might misunderstand something, but shouldn't "VITE_API_URL=http://backend:8001" be added to the sample .env file?