From a571595c69e53362d9ffe054e39d11bca633e07d Mon Sep 17 00:00:00 2001 From: Elias Ahokas Date: Sun, 15 Feb 2026 18:15:59 +0200 Subject: [PATCH] add ollama and webui --- README.md | 2 ++ docker-compose.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/README.md b/README.md index 6a329e2..4e1cecc 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Miscellaneous services for z420. ## Services - Telegram Bot +- Home automation +- Local llm ## Setup diff --git a/docker-compose.yml b/docker-compose.yml index ba0db6e..0458032 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -53,6 +53,35 @@ services: environment: - TZ=Europe/Helsinki + ollama: + image: ollama/ollama + container_name: ollama + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] + volumes: + - /var/lib/z420/ollama:/root/.ollama + ports: + - "11434:11434" + restart: unless-stopped + + open-webui: + image: ghcr.io/open-webui/openwebui:main + container_name: open-webui + depends_on: + - ollama + environment: + - OLLAMA_BASE_URL=http://ollama:11434 + volumes: + - /var/lib/z420/open-webui:/app/backend/data + ports: + - "3000:3000" + restart: unless-stopped + secrets: bot_token: file: ./secrets/bot_token.txt \ No newline at end of file