This commit is contained in:
@@ -4,6 +4,8 @@ Miscellaneous services for z420.
|
|||||||
|
|
||||||
## Services
|
## Services
|
||||||
- Telegram Bot
|
- Telegram Bot
|
||||||
|
- Home automation
|
||||||
|
- Local llm
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user