From 9b9c0fab0c35f14205f7dda106dd61a408dd8e73 Mon Sep 17 00:00:00 2001 From: James Turland Date: Wed, 29 Jan 2025 13:06:40 +0000 Subject: [PATCH] deepseek --- Deepseek/docker-compose.yaml | 70 ++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Deepseek/docker-compose.yaml diff --git a/Deepseek/docker-compose.yaml b/Deepseek/docker-compose.yaml new file mode 100644 index 0000000..66b28b0 --- /dev/null +++ b/Deepseek/docker-compose.yaml @@ -0,0 +1,70 @@ +services: + ollama: + # Uncomment below for GPU support + # deploy: + # resources: + # reservations: + # devices: + # - driver: nvidia + # count: 1 + # capabilities: + # - gpu + volumes: + - ollama:/root/.ollama + # Uncomment below to expose Ollama API outside the container stack + # ports: + # - 11434:11434 + container_name: ollama + pull_policy: always + tty: true + restart: unless-stopped + image: ollama/ollama:latest + #networks: + # - ollama-network + + + open-webui: + build: + context: . + args: + OLLAMA_BASE_URL: '/ollama' + dockerfile: Dockerfile + image: ghcr.io/open-webui/open-webui:latest + container_name: open-webui + volumes: + - open-webui:/app/backend/data + depends_on: + - ollama + ports: + - 3000:8080 + environment: + - 'OLLAMA_BASE_URL=http://ollama:11434' + - 'WEBUI_SECRET_KEY=' + extra_hosts: + - host.docker.internal:host-gateway + restart: unless-stopped + #networks: + # - ollama-network + # - proxy + #labels: + # - "traefik.enable=true" + # - "traefik.docker.network=proxy" + # - "traefik.http.routers.ollama.entrypoints=http" + # - "traefik.http.routers.ollama.rule=Host(`ollama.jimsgarage.co.uk`)" + # - "traefik.http.middlewares.ollama-https-redirect.redirectscheme.scheme=https" + # - "traefik.http.routers.ollama.middlewares=ollama-https-redirect" + # - "traefik.http.routers.ollama-secure.entrypoints=https" + # - "traefik.http.routers.ollama-secure.rule=Host(`ollama.jimsgarage.co.uk`)" + # - "traefik.http.routers.ollama-secure.tls=true" + # - "traefik.http.routers.ollama-secure.tls.certresolver=cloudflare" + # - "traefik.http.routers.ollama-secure.service=ollama" + # - "traefik.http.services.ollama.loadbalancer.server.port=8080" + +volumes: + ollama: {} + open-webui: {} + +#networks: + #ollama-network: + #proxy: + # external: true \ No newline at end of file