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

Getting started with Docker is incomplete #3

Open
jonmotos opened this issue Jun 7, 2023 · 4 comments
Open

Getting started with Docker is incomplete #3

jonmotos opened this issue Jun 7, 2023 · 4 comments

Comments

@jonmotos
Copy link

jonmotos commented Jun 7, 2023

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
Copy link
Owner

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
Copy link

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

@partisansb
Copy link

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
Copy link
Owner

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants