mirror of
https://github.com/rodneyosodo/homelab.git
synced 2026-08-07 07:15:03 +00:00
feat(docker): add ollama exporter for metrics
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
This commit is contained in:
@@ -16,6 +16,27 @@ services:
|
||||
- ~/docker-volumes/ollama/data:/root/.ollama
|
||||
- ~/docker-volumes/ollama/models:/ollama-models
|
||||
|
||||
ollama-exporter:
|
||||
container_name: ollama-exporter
|
||||
image: ghcr.io/maravexa/ollama-exporter:v0.1.2
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- homelab-network
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
environment:
|
||||
- OLLAMA_URL=http://ollama:11434
|
||||
- LISTEN_ADDR=:5021
|
||||
- POLL_INTERVAL=15s
|
||||
- LOG_LEVEL=info
|
||||
- PROXY_ENABLED=true
|
||||
- PROXY_LISTEN_ADDR=:5022
|
||||
ports:
|
||||
- 5021:5021 # Metrics
|
||||
- 5022:5022 # Proxy
|
||||
depends_on:
|
||||
- ollama
|
||||
|
||||
open-webui:
|
||||
container_name: open-webui
|
||||
image: ghcr.io/open-webui/open-webui:v0.9.5
|
||||
@@ -26,7 +47,7 @@ services:
|
||||
- no-new-privileges:true
|
||||
environment:
|
||||
- TZ=Africa/Nairobi
|
||||
- OLLAMA_BASE_URL=http://ollama:11434
|
||||
- OLLAMA_BASE_URL=http://ollama-exporter:5022
|
||||
depends_on:
|
||||
- ollama
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user