1
0
Fork 0

share the network stack between open-webui and ollama

This commit is contained in:
Massaki Archambault 2024-04-04 10:16:41 -04:00
parent f912cf0179
commit 9ea2781562
4 changed files with 5 additions and 7 deletions

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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: