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:
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
volumes:
- /srv/docker/openwebui:/app/backend/data
volumes:
ollama_data:
openwebui_data: