ollama-docker  by mythrantic

Docker compose setup for Ollama deployment

Created 1 year ago
1,248 stars

Top 31.7% 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

3 months ago

Responsiveness

1 day

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

Explore Similar Projects

Starred by Pawel Garbacki Pawel Garbacki(Cofounder of Fireworks AI), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
2 more.

gpt4free by xtekky

0.1%
65k
API package for multi-provider LLM requests (GPT-4.1, Gemini 2.5, Deepseek R1)
Created 2 years ago
Updated 5 days 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
24 more.

open-webui by open-webui

0.6%
110k
Self-hosted AI platform for local LLM deployment
Created 1 year ago
Updated 1 day ago
Feedback? Help us improve.