Fixed the cpu version to save the vol to the correct spot

This commit is contained in:
Nick Yeoman
2024-11-22 06:36:10 -08:00
parent 3566fdfbee
commit 9be217382a
+17
View File
@@ -29,6 +29,23 @@ services:
environment: environment:
- NVIDIA_VISIBLE_DEVICES=all - NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility - NVIDIA_DRIVER_CAPABILITIES=compute,utility
volumes:
- "${VOL_PATH:-./data}/webui:/root/.cache"
- "${VOL_PATH:-./data}/open-webui:/app/backend/data"
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "3000:8080" # Open WebUI access
ollama-cpu:
image: ollama/ollama
ports:
- "11434:11434"
volumes:
- "${VOL_PATH:-./data}/ollama:/root/.ollama"
webui-cpu:
image: ${WEBUI_IMAGE:-ghcr.io/open-webui/open-webui:cuda}
volumes: volumes:
- "${VOL_PATH:-./data}/webui:/root/.cache" - "${VOL_PATH:-./data}/webui:/root/.cache"
- "${VOL_PATH:-./data}/open-webui:/app/backend/data" - "${VOL_PATH:-./data}/open-webui:/app/backend/data"