share the network stack between open-webui and ollama
This commit is contained in:
parent
f912cf0179
commit
9ea2781562
|
@ -8,8 +8,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
entrypoint: /bootstrap.sh
|
entrypoint: /bootstrap.sh
|
||||||
command: mistral
|
command: mistral
|
||||||
ports:
|
network_mode: service:open-webui
|
||||||
- 11434:11434
|
|
||||||
# begin for AMD GPU support
|
# begin for AMD GPU support
|
||||||
devices:
|
devices:
|
||||||
- /dev/kfd
|
- /dev/kfd
|
||||||
|
|
|
@ -18,8 +18,9 @@ services:
|
||||||
image: ghcr.io/open-webui/open-webui:main
|
image: ghcr.io/open-webui/open-webui:main
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
|
- 11434:11434
|
||||||
environment:
|
environment:
|
||||||
OLLAMA_BASE_URL: http://ollama:11434
|
OLLAMA_BASE_URL: http://localhost:11434
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- host.docker.internal:host-gateway
|
- host.docker.internal:host-gateway
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -8,8 +8,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
entrypoint: /bootstrap.sh
|
entrypoint: /bootstrap.sh
|
||||||
command: mistral
|
command: mistral
|
||||||
ports:
|
network_mode: service:open-webui
|
||||||
- 11434:11434
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./ollama/bootstrap.sh:/bootstrap.sh:ro
|
- ./ollama/bootstrap.sh:/bootstrap.sh:ro
|
||||||
- ./ollama:/root/.ollama
|
- ./ollama:/root/.ollama
|
|
@ -8,8 +8,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
entrypoint: /bootstrap.sh
|
entrypoint: /bootstrap.sh
|
||||||
command: mistral
|
command: mistral
|
||||||
ports:
|
network_mode: service:open-webui
|
||||||
- 11434:11434
|
|
||||||
# begin for NVIDIA GPU support
|
# begin for NVIDIA GPU support
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
|
|
Loading…
Reference in New Issue