From 3c89588cd9bf73e24621ba6a95363866216584e1 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 14 Nov 2023 16:42:10 -0800 Subject: [PATCH] feat: docker compose backend support update --- compose.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compose.yaml b/compose.yaml index e9ca7102..0a77d64f 100644 --- a/compose.yaml +++ b/compose.yaml @@ -15,8 +15,6 @@ services: - ollama:/root/.ollama ports: - 11434:11434 - environment: - - 'OLLAMA_ORIGINS=*' container_name: ollama pull_policy: always tty: true @@ -24,16 +22,18 @@ services: image: ollama/ollama:latest ollama-webui: - restart: unless-stopped build: context: . args: - OLLAMA_API_BASE_URL: '' + OLLAMA_API_BASE_URL: '/ollama/api' dockerfile: Dockerfile image: ollama-webui:latest container_name: ollama-webui ports: - 3000:8080 + extra_hosts: + - host.docker.internal:host-gateway + restart: unless-stopped volumes: ollama: {}