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:
2026-01-31 19:20:50 +00:00
parent edf45229dc
commit fda2a9b8d8
+11 -1
View File
@@ -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