From 0e09171d3dfc3062266292abc763fda33ab4c91e Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 14 Apr 2024 22:23:29 +0000 Subject: [PATCH] adding ai --- AI/docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 AI/docker-compose.yml diff --git a/AI/docker-compose.yml b/AI/docker-compose.yml new file mode 100644 index 0000000..9294016 --- /dev/null +++ b/AI/docker-compose.yml @@ -0,0 +1,35 @@ +version: "3.8" + +services: + ollama: + image: ollama/ollama@sha256:72bffd1f1bf5744daa0668162a6cfd149efb0624db8f1886edde65c2f743b405 + container_name: ollama + restart: unless-stopped + volumes: + - ollama:/root/.ollama + ports: + - "11434:11434" + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] + + open-webui: + image: ghcr.io/open-webui/open-webui@sha256:74d75905b6385d258f3de74e61dad2dbfea09b53c4bf02783e7e925d5d699c31 + container_name: open-webui + restart: unless-stopped + ports: + - 3000:8080 + volumes: + - open-webui:/app/backend/data + extra_hosts: + - host.docker.internal:host-gateway + +volumes: + ollama: + external: true + open-webui: + external: true