commit ff7c6f4a41152addbbd706c2b6ccee20dcde0089 Author: stephane.david Date: Thu Apr 23 21:10:22 2026 +0200 first version diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8f6316f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,47 @@ +services: + ollama: + image: ollama/ollama:latest + container_name: ollama + restart: unless-stopped + ports: + - "11434:11434" + environment: + - OLLAMA_HOST=0.0.0.0 + - NVIDIA_VISIBLE_DEVICES=all + - NVIDIA_DRIVER_CAPABILITIES=compute,utility + volumes: + - ollama_data:/root/.ollama + deploy: + resources: + reservations: + devices: + - capabilities: [gpu] + runtime: nvidia + + ollama-exporter: + image: ghcr.io/otter-in-a-suit/ollama-prometheus-exporter:latest + container_name: ollama-exporter + restart: unless-stopped + ports: + - "9177:9177" + environment: + - OLLAMA_ENDPOINT=http://ollama:11434 + depends_on: + - ollama + + openwebui: + image: ghcr.io/open-webui/open-webui:main + container_name: openwebui + restart: unless-stopped + ports: + - "3000:8080" + environment: + - OLLAMA_API_BASE=http://ollama:11434 + volumes: + - openwebui_data:/app/backend/data + depends_on: + - ollama + +volumes: + ollama_data: + openwebui_data: