Dhruvgera / LocalAI-frontend

A front-end for selfhosted LLMs based on the LocalAI API
66 stars 19 forks source link

Getting started with Docker is incomplete #3

Open jonmotos opened 1 year ago

jonmotos commented 1 year ago

You provide a sample docker-compose (nice!), and say that is the easy way to get started, however your only step is to copy the sample docker-compose to the local-ai directory... And that example does not include any image to pull, or the Dockerfile from which to build - the way it is written I believe is only going to build the api again?

I'm sure it's an easy step, but I'm not sure what the proper step should be to get the docker compose working.

Dhruvgera commented 1 year ago

You provide a sample docker-compose (nice!), and say that is the easy way to get started, however your only step is to copy the sample docker-compose to the local-ai directory... And that example does not include any image to pull, or the Dockerfile from which to build - the way it is written I believe is only going to build the api again?

I'm sure it's an easy step, but I'm not sure what the proper step should be to get the docker compose working.

The sample docker compose does refer to the Dockerfile, but yes the images are there on LocalAI's page where the rest of the images are hosted, I will update it accordingly, thanks for bringing the oversight to notice!

johndpope commented 1 year ago

there's no sample .env file.....

partisansb commented 9 months ago

I had the same issue, First I renamed the duplicate files in the localAI folder to something like localai.Dockerfile localai.otherfiles, then I copied the other files from the frontend folder into the main localAI folder and ran the build command and it worked. I used the existing .env file, perhaps thats why it can't find my models....

Dhruvgera commented 9 months ago

I had the same issue, First I renamed the duplicate files in the localAI folder to something like localai.Dockerfile localai.otherfiles, then I copied the other files from the frontend folder into the main localAI folder and ran the build command and it worked. I used the existing .env file, perhaps thats why it can't find my models....

The models are supposed to be in the /models dir as per the localAI repo! It will just pick them up, or you can change the path in the sample docker compose.

Also, the project will be recieving regular updates soon, I am back to maintaining this :)