add ollama and webui
Some checks failed
deploy misc services / deploy (push) Failing after 11s

This commit is contained in:
Elias Ahokas
2026-02-15 18:15:59 +02:00
parent e913d7a4e5
commit a571595c69
2 changed files with 31 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ Miscellaneous services for z420.
## Services ## Services
- Telegram Bot - Telegram Bot
- Home automation
- Local llm
## Setup ## Setup

View File

@@ -53,6 +53,35 @@ services:
environment: environment:
- TZ=Europe/Helsinki - 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: secrets:
bot_token: bot_token:
file: ./secrets/bot_token.txt file: ./secrets/bot_token.txt