From 7b7a32dea63b3c73e1574fa98642642d1d68384e Mon Sep 17 00:00:00 2001 From: traveler Date: Tue, 10 Mar 2026 15:53:57 -0500 Subject: [PATCH] Calibred --- compose/znas/calibre.yaml | 4 +- swarm/ollama.yaml | 183 +++++++++++++++++++------------------- 2 files changed, 92 insertions(+), 95 deletions(-) diff --git a/compose/znas/calibre.yaml b/compose/znas/calibre.yaml index 82bc1db..4a0fc2b 100644 --- a/compose/znas/calibre.yaml +++ b/compose/znas/calibre.yaml @@ -5,8 +5,8 @@ services: hostname: calibre environment: - TZ=America/Chicago - - PGID=998 - - PUID=1001 + - PGID=1964 + - PUID=1964 networks: - netgrimoire volumes: diff --git a/swarm/ollama.yaml b/swarm/ollama.yaml index 20ea32e..d6c697d 100644 --- a/swarm/ollama.yaml +++ b/swarm/ollama.yaml @@ -1,121 +1,118 @@ -version: "3.9" - -networks: - netgrimoire: - external: true - services: ollama: image: ollama/ollama:latest - networks: - - netgrimoire - environment: - - TZ=America/Chicago - - PUID=1964 - - PGID=1964 - #user: "1964:1964" - volumes: - - /DockerVol/ollama:/root/.ollama ports: - "11434:11434" + volumes: + - /DockerVol/ollama:/root/.ollama + environment: + - OLLAMA_ORIGINS=* + networks: + - netgrimoire deploy: - replicas: 1 + labels: + - homepage.group=AI Stack + - homepage.name=Ollama + - homepage.icon=ollama.png + - homepage.href=http://ollama.netgrimoire.com:11434 + - homepage.description=Local LLM Runtime + - kuma.ollama.http.name=Ollama API + - kuma.ollama.http.url=http://ollama:11434/api/tags placement: constraints: - node.hostname == docker4 - restart_policy: - condition: any - labels: - # --- DIUN --- - - "diun.enable=true" + # Uncomment for GPU support + # resources: + # reservations: + # devices: + # - driver: nvidia + # count: 1 + # capabilities: [gpu] - # --- KUMA --- - - "kuma.ollama.http.name=Ollama API" - - "kuma.ollama.http.url=http://docker4:11434" - - # --- CADDY (optional) --- - # If you want to publish the Ollama API through Caddy, uncomment: - # - "caddy=ollama.netgrimoire.com" - # - "caddy.reverse_proxy={{upstreams 11434}}" - - openwebui: + open-webui: image: ghcr.io/open-webui/open-webui:main - networks: - - netgrimoire - environment: - - TZ=America/Chicago - - PUID=1964 - - PGID=1964 - - OLLAMA_BASE_URL=http://ollama:11434 - # user: "1964:1964" - volumes: - - /DockerVol/openwebui:/app/backend/data - # Keep port published for initial testing / break-glass; - # once Caddy is working you can remove this. ports: - "3000:8080" + volumes: + - /DockerVol/open-webui:/app/backend/data + environment: + - OLLAMA_BASE_URL=http://ollama:11434 + - WEBUI_SECRET_KEY=F@lcon13 + - ENABLE_RAG_WEB_SEARCH=true + - ENABLE_OLLAMA_API=true + - QDRANT_HOST=qdrant + - QDRANT_PORT=6333 + networks: + - netgrimoire deploy: - replicas: 1 + labels: + - homepage.group=AI Stack + - homepage.name=Open WebUI + - homepage.icon=openwebui.png + - homepage.href=https://ai.netgrimoire.com + - homepage.description=AI Chat Interface + - kuma.openwebui.http.name=Open WebUI + - kuma.openwebui.http.url=http://open-webui:8080 + - caddy=ai.netgrimoire.com + - caddy.reverse_proxy={{upstreams 8080}} placement: constraints: - node.hostname == docker4 - restart_policy: - condition: any - labels: - # --- Homepage --- - - homepage.group=Applications - - homepage.name=Ollama - - homepage.icon=open-webui.svg - - homepage.href=https://openwebui.netgrimoire.com - - homepage.description=Self Hosted AI - - # --- DIUN --- - - "diun.enable=true" - - # --- KUMA --- - - "kuma.openwebui.http.name=Open WebUI" - - "kuma.openwebui.http.url=https://openwebui.netgrimoire.com" - - # --- CADDY --- - - "caddy=openwebui.netgrimoire.com" - - "caddy.reverse_proxy={{upstreams 8080}}" qdrant: image: qdrant/qdrant:latest - networks: - - netgrimoire - environment: - - TZ=America/Chicago - - PUID=1964 - - PGID=1964 - # user: "1964:1964" - volumes: - - /DockerVol/qdrant:/qdrant/storage ports: - "6333:6333" + - "6334:6334" + volumes: + - /DockerVol/qdrant:/qdrant/storage + environment: + - QDRANT__SERVICE__GRPC_PORT=6334 + networks: + - netgrimoire deploy: - replicas: 1 + labels: + - homepage.group=AI Stack + - homepage.name=Qdrant + - homepage.icon=qdrant.png + - homepage.href=http://qdrant.netgrimoire.com:6333/dashboard + - homepage.description=Vector Database + - kuma.qdrant.http.name=Qdrant + - kuma.qdrant.http.url=http://qdrant:6333 placement: constraints: - node.hostname == docker4 - restart_policy: - condition: any + n8n: + image: n8nio/n8n:latest + ports: + - "5678:5678" + volumes: + - /DockerVol/n8n:/home/node/.n8n + - /export/Docker/n8n/workflows:/home/node/.n8n/workflows + environment: + - N8N_BASIC_AUTH_ACTIVE=true + - N8N_BASIC_AUTH_USER=admin + - N8N_BASIC_AUTH_PASSWORD=F@lcon13 + - WEBHOOK_URL=https://n8n.netgrimoire.com/ + - GENERIC_TIMEZONE=America/Chicago + - N8N_EDITOR_BASE_URL=https://n8n.netgrimoire.com/ + networks: + - netgrimoire + deploy: labels: + - homepage.group=AI Stack + - homepage.name=n8n + - homepage.icon=n8n.png + - homepage.href=https://n8n.netgrimoire.com + - homepage.description=Workflow Automation + - kuma.n8n.http.name=n8n + - kuma.n8n.http.url=http://n8n:5678 + - caddy=n8n.netgrimoire.com + - caddy.reverse_proxy={{upstreams 5678}} + placement: + constraints: + - node.hostname == docker4 - # --- Homepage --- - - homepage.group=Applications - - homepage.name=qdrant (Local access only) - - homepage.icon=Oqdrant.png - - homepage.href=http://docker4:6333 - - homepage.description=Self Hosted AI - # --- DIUN --- - - "diun.enable=true" - - # --- KUMA --- - - "kuma.qdrant.http.name=Qdrant" - - "kuma.qdrant.http.url=http://docker4:6333" - - # --- CADDY (optional) --- - # Qdrant has a UI, but many people keep it internal. If you want it published: - # - "caddy=qdrant.netgrimoire.com" - # - "caddy.reverse_proxy={{upstreams 6333}}" +networks: + netgrimoire: + external: true \ No newline at end of file