Update docker-compose.yml

This commit is contained in:
2026-04-13 19:05:52 -05:00
parent 309443c15a
commit bedc42b97c
+19 -14
View File
@@ -1,23 +1,28 @@
services: services:
ollama: ollama:
image: ollama/ollama image: ollama/ollama:latest
container_name: ollama container_name: ollama
volumes: restart: unless-stopped
- /srv/docker/ollama:/root/.ollama
ports: ports:
- "12434:11434" - "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: 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: ports:
- "12000:8080" - "3000:8080"
environment: environment:
- OLLAMA_BASE_URL=http://ollama:11434 - OLLAMA_BASE_URL=http://ollama:11434
extra_hosts: volumes:
- "host.docker.internal:host-gateway" - /srv/docker/openwebui:/app/backend/data
restart: unless-stopped
volumes:
ollama_data:
openwebui_data: