ollama-docker  by mythrantic

Docker compose setup for Ollama deployment

created 1 year ago
1,195 stars

Top 33.4% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This project provides a streamlined Docker Compose setup for deploying Ollama, a tool for running large language models locally. It targets developers and users who want an easy, containerized way to access and experiment with LLMs, offering GPU acceleration and integration with tools like Langchain.

How It Works

The setup utilizes Docker Compose to orchestrate multiple containers, including Ollama itself and a web UI. For GPU acceleration, it integrates with the NVIDIA Container Toolkit, allowing Ollama to leverage host GPU resources efficiently. An additional app container is provided for Langchain examples and as a devcontainer for development.

Quick Start & Requirements

  • Install: git clone https://github.com/mythrantic/ollama-docker.git && cd ollama-docker
  • Prerequisites: Docker, Docker Compose. Optional: NVIDIA Container Toolkit for GPU support.
  • Usage:
    • CPU: docker compose up -d
    • GPU: docker compose -f docker-compose-ollama-gpu.yaml up -d
  • Access: http://localhost:8080
  • Docs: NVIDIA Container Toolkit

Highlighted Details

  • Simplified deployment of Ollama and web UI via Docker Compose.
  • Optional NVIDIA GPU acceleration with provided setup instructions.
  • Includes an app container for Langchain examples and devcontainer functionality.
  • run.sh script for setting up a local virtual environment as an alternative to Docker.

Maintenance & Community

Licensing & Compatibility

  • License: RSOSL (Requires mention and credit).
  • Compatible with commercial use, provided attribution.

Limitations & Caveats

The project is primarily focused on Docker deployment; alternative development environments are supported via a run.sh script but may require manual setup.

Health Check
Last commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
145 stars in the last 90 days

Explore Similar Projects

Starred by Pietro Schirano Pietro Schirano(Founder of MagicPath), Carol Willing Carol Willing(Core Contributor to CPython, Jupyter), and
6 more.

openui by wandb

0.1%
22k
UI prototyping tool using LLMs
created 1 year ago
updated 1 week ago
Starred by Tobi Lutke Tobi Lutke(Cofounder of Shopify), Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), and
13 more.

open-webui by open-webui

0.9%
105k
Self-hosted AI platform for local LLM deployment
created 1 year ago
updated 1 day ago
Feedback? Help us improve.