Skip to content

Repository files navigation

Ollama Compose

================

Ollama Compose is a Docker-based project that provides a scalable and efficient way to deploy Ollama, a powerful AI model, along with its dependencies.

Table of Contents


Introduction


Ollama Compose is designed to simplify the deployment of Ollama and its dependencies, including OpenWebUI, PostgreSQL (pgvector), and Apache Tika. The project uses Docker Compose to manage the containers and provide a scalable architecture.

Prerequisites


  • Docker installed on your system
  • Docker Compose installed on your system
  • (optional) NVIDIA GPU drivers installed on your system (for GPU acceleration)

Setup Instructions


  1. Clone the repository: git clone https://github.com/your-username/ollama-compose.git
  2. Change into the project directory: cd ollama-compose
  3. Create a copy of the .env.example file and rename it to .env: cp .env.example .env
  4. Update the environment variables in the .env file to match your setup
  5. Run docker-compose up -d to start the containers in detached mode

Configuration


The project uses environment variables to configure the containers. You can update the .env file to change the configuration.

  • OLLAMA_PORT: The port number to use for the Ollama server
  • OPENWEBUI_PORT: The port number to use for the OpenWebUI server
  • POSTGRES_USER: The username to use for the PostgreSQL database
  • POSTGRES_PASSWORD: The password to use for the PostgreSQL database
  • POSTGRES_DB: The name of the PostgreSQL database
  • SERVER_HOSTNAME: The FQDN of your application. localhost if you only run locally.

Edit the models.txt file to add the models you are planning to use. Each model has to be in a newline. Make sure to save the file in UTF-8 without BOM.

Usage


  • Access the OpenWebUI interface at https://localhost

Troubleshooting


  • Check the container logs for errors: docker-compose logs
  • Check the Ollama server logs for errors: docker-compose exec ollama /bin/ollama logs

Contributing


Contributions are welcome! Please submit a pull request with your changes.

License


This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages