Update ollama configuration
- Add npm-network to ollama and open-webui services - Add timezone (America/New_York) to both services - Change open-webui image tag from main to latest
This commit is contained in:
@@ -8,6 +8,7 @@ services:
|
||||
environment:
|
||||
- NVIDIA_VISIBLE_DEVICES=all
|
||||
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
|
||||
- TZ=America/New_York
|
||||
volumes:
|
||||
- /srv/ollama:/root/.ollama
|
||||
deploy:
|
||||
@@ -17,17 +18,26 @@ services:
|
||||
- driver: nvidia
|
||||
count: all
|
||||
capabilities: [gpu]
|
||||
networks:
|
||||
- npm-network
|
||||
|
||||
# Optional: Web UI for Ollama
|
||||
open-webui:
|
||||
container_name: open-webui
|
||||
image: ghcr.io/open-webui/open-webui:main
|
||||
image: ghcr.io/open-webui/open-webui:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:8080
|
||||
environment:
|
||||
- OLLAMA_BASE_URL=http://ollama:11434
|
||||
- TZ=America/New_York
|
||||
volumes:
|
||||
- /srv/open-webui:/app/backend/data
|
||||
depends_on:
|
||||
- ollama
|
||||
networks:
|
||||
- npm-network
|
||||
|
||||
networks:
|
||||
npm-network:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user