Free & Open-Source DevOps Hub: 100% Valid Docker Compose configs & verified hardware benchmarks Try VPS RAM Calculator →
ai-llms ⭐ Featured Self-Hosted Stack Docker: ollama/ollama:latest

Self-Host Ollama with Docker Compose

Ollama bundles model weights, configuration, and data into a single package. Run, customize, and serve state-of-the-art open-source LLMs through a local REST API.

GitHub Stars
★ 0
GitHub Forks
0
Language
Multi-Language
License
Open-Source
Last Commit
Recent

Minimum Hardware Requirements

RAM
Minimum Memory
8 GB
CPU
Processor
4 Core(s)
DISK
Storage Required
50 GB NVMe
docker-compose.yml
version: '3.8'

services:
  ollama:
    image: ollama/ollama:latest
    container_name: ollama
    restart: unless-stopped
    ports:
      - "11434:11434"
    environment:
      - NODE_ENV=production
      - TZ=UTC
    volumes:
      - ollama_data:/data

volumes:
  ollama_data:
    driver: local
Save to docker-compose.yml and run: docker compose up -d
⚡ Embedded DevOps Micro-Tool

VPS RAM & Server Sizing Calculator

Planning to run Ollama alone or alongside other self-hosted containers on one VPS? Toggle apps to calculate your exact RAM needs with a 25% safety buffer.

Total Base RAM
Recommended (+25%)
CPU Cores Needed
Disk Storage

Matched Cloud VPS Tiers for Selected Workload:

Interactive Tool Matchup

Compare Ollama Side-by-Side

Select any open-source tool from the dropdown to run a hardware, memory, and popularity benchmark against Ollama.

VS
Instant Benchmark Summary Open Full Comparison Page →

RAM
CPU
License

RAM
CPU
License