Tots els compose

This commit is contained in:
Guillem Hernandez Sola
2026-06-30 13:12:37 +02:00
parent bebb2969f8
commit f1fe15d1b5
35 changed files with 2075 additions and 0 deletions

46
ollama/docker-compose.yml Normal file
View File

@@ -0,0 +1,46 @@
# /opt/stacks/ollama/docker-compose.yml
services:
ollama:
container_name: ollama
image: ollama/ollama:latest
restart: unless-stopped
ports:
- "127.0.0.1:11434:11434" # API Ollama (només local, open-webui hi accedeix internament)
volumes:
- ollama_data:/root/.ollama # Models descarregats
environment:
TZ: Europe/Madrid
OLLAMA_HOST: 0.0.0.0 # Necessari perquè open-webui hi accedeixi via xarxa interna
networks:
- ollama-net
- shared_net
open-webui:
container_name: open-webui
image: ghcr.io/open-webui/open-webui:main
restart: unless-stopped
ports:
- "127.0.0.1:3000:8080" # Interfície web (només local → via Nginx)
environment:
TZ: Europe/Madrid
OLLAMA_BASE_URL: http://ollama:11434
WEBUI_SECRET_KEY: '${WEBUI_SECRET_KEY}' # Via .env
volumes:
- open_webui_data:/app/backend/data
depends_on:
- ollama
networks:
- ollama-net
- shared_net
volumes:
ollama_data:
open_webui_data:
networks:
ollama-net:
driver: bridge
shared_net:
external: true
name: shared_net