From bedc42b97cb7b55bc1002864c741abc1822a2259 Mon Sep 17 00:00:00 2001 From: mattspeer Date: Mon, 13 Apr 2026 19:05:52 -0500 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4a5bcc7..e98b796 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,23 +1,28 @@ services: ollama: - image: ollama/ollama + image: ollama/ollama:latest container_name: ollama - volumes: - - /srv/docker/ollama:/root/.ollama + restart: unless-stopped ports: - "12434:11434" - restart: unless-stopped - # Add GPU support here if needed (see previous response) - - open-webui: - image: ghcr.io/open-webui/open-webui:main - container_name: open-webui volumes: - - /srv/docker/open-webui:/app/backend/data + - /srv/docker/ollama/ollama:/root/.ollama + environment: + - OLLAMA_HOST=0.0.0.0 + + openwebui: + image: ghcr.io/open-webui/open-webui:latest + container_name: openwebui + restart: unless-stopped + depends_on: + - ollama ports: - - "12000:8080" + - "3000:8080" environment: - OLLAMA_BASE_URL=http://ollama:11434 - extra_hosts: - - "host.docker.internal:host-gateway" - restart: unless-stopped \ No newline at end of file + volumes: + - /srv/docker/openwebui:/app/backend/data + +volumes: + ollama_data: + openwebui_data: \ No newline at end of file