From beb2e3fcf45a107d97d3254bd5054a3d1e59c0cb Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Fri, 26 Dec 2025 16:23:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0ollama=20base=20url?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 9861dfc..53d6253 100644 --- a/deploy.sh +++ b/deploy.sh @@ -30,7 +30,8 @@ docker rm -f ${CONTAINER_NAME} docker run -itd \ --name "${CONTAINER_NAME}" \ --restart=always \ - -e "OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://172.17.0.1:11434}" \ + --add-host=host.docker.internal:host-gateway \ + -e "OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}" \ -e "MODE=${MODE}" \ -p 8090:8090 \ "${CONTAINER_NAME}" ./bin/server --config "./${CONFIG_FILE}"