Free & Open-Source DevOps Hub: 100% Valid Docker Compose configs & verified hardware benchmarks Try VPS RAM Calculator →
ai-llms Docker: localai/localai:latest

Self-Host LocalAI with Docker Compose

LocalAI acts as a drop-in replacement REST API that is compatible with OpenAI API specifications for local inferencing without requiring GPU clusters.

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

Minimum Hardware Requirements

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

services:
  localai:
    image: localai/localai:latest
    container_name: localai
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      - NODE_ENV=production
      - TZ=UTC
    volumes:
      - localai_data:/data

volumes:
  localai_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 LocalAI 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 LocalAI Side-by-Side

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

VS
Instant Benchmark Summary Open Full Comparison Page →

RAM
CPU
License

RAM
CPU
License