From 85638634b5b626494dd6b64aec207c141f38b078 Mon Sep 17 00:00:00 2001 From: Gormery Kombo Wanjiru Date: Sun, 19 May 2024 17:34:31 +0200 Subject: [PATCH] Changing the 11434 as the system port default #8 no work when changing ollama port #6 --- docker-compose-ollama-gpu.yaml | 14 +++++++++++--- docker-compose.yml | 11 ++++++++--- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/docker-compose-ollama-gpu.yaml b/docker-compose-ollama-gpu.yaml index 166cb81..8a92f04 100644 --- a/docker-compose-ollama-gpu.yaml +++ b/docker-compose-ollama-gpu.yaml @@ -25,7 +25,10 @@ services: restart: unless-stopped image: ollama/ollama:latest ports: - - 11434:11434 + - 7869:11434 + environment: + - OLLAMA_KEEP_ALIVE="24h" + - OLLAMA_HOST=0.0.0.0 networks: - ollama-docker deploy: @@ -45,8 +48,13 @@ services: - ollama ports: - 8080:8080 - environment: - - '/ollama/api=http://ollama:11434/api' + environment: # https://docs.openwebui.com/getting-started/env-configuration#default_models + - OLLAMA_BASE_URLS=http://host.docker.internal:7869 #comma separated ollama hosts + - ENV=dev + - WEBUI_AUTH=False + - WEBUI_NAME=valiantlynx AI + - WEBUI_URL=http://localhost:8080 + - WEBUI_SECRET_KEY=t0p-s3cr3t extra_hosts: - host.docker.internal:host-gateway restart: unless-stopped diff --git a/docker-compose.yml b/docker-compose.yml index 9a87f2b..0b23545 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: ollama: image: ollama/ollama:latest ports: - - 11434:11434 + - 7869:11434 volumes: - .:/code - ./ollama/ollama:/root/.ollama @@ -41,8 +41,13 @@ services: - ollama ports: - 8080:8080 - environment: - - '/ollama/api=http://ollama:11434/api' + environment: # https://docs.openwebui.com/getting-started/env-configuration#default_models + - OLLAMA_BASE_URLS=http://host.docker.internal:7869 #comma separated ollama hosts + - ENV=dev + - WEBUI_AUTH=False + - WEBUI_NAME=valiantlynx AI + - WEBUI_URL=http://localhost:8080 + - WEBUI_SECRET_KEY=t0p-s3cr3t extra_hosts: - host.docker.internal:host-gateway restart: unless-stopped