Files
homeai-kit-test/stacks/llm/docker-compose.yml
2026-03-29 22:02:22 -04:00

53 lines
1.2 KiB
YAML

# HomeAI Kit — LLM Stack (Ollama + Open WebUI)
# Standalone local ChatGPT alternative.
#
# Setup:
# docker network create homeai-net # once, if not already created
# docker compose up -d
# docker exec homeai-ollama ollama pull llama3.2:3b
#
# Then visit http://localhost:3000
services:
ollama:
image: ollama/ollama:latest
container_name: homeai-ollama
ports:
- "${OLLAMA_PORT:-11434}:11434"
volumes:
- ollama_data:/root/.ollama
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:11434/api/tags || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
restart: unless-stopped
networks:
- homeai-net
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: homeai-open-webui
ports:
- "${WEBUI_PORT:-3000}:8080"
environment:
OLLAMA_BASE_URL: http://ollama:11434
WEBUI_AUTH: "true"
volumes:
- openwebui_data:/app/backend/data
depends_on:
ollama:
condition: service_healthy
restart: unless-stopped
networks:
- homeai-net
volumes:
ollama_data:
openwebui_data:
networks:
homeai-net:
external: true