From 187959af9f7ca1677a99a5d42237acec6e3839f9 Mon Sep 17 00:00:00 2001 From: traveler Date: Wed, 15 Apr 2026 18:48:30 -0500 Subject: [PATCH] docs(gremlin): create gremlin-stack --- .../Services/gremlin-stack/gremlin-stack.md | 148 ++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Netgrimoire/Services/gremlin-stack/gremlin-stack.md diff --git a/Netgrimoire/Services/gremlin-stack/gremlin-stack.md b/Netgrimoire/Services/gremlin-stack/gremlin-stack.md new file mode 100644 index 0000000..66d4159 --- /dev/null +++ b/Netgrimoire/Services/gremlin-stack/gremlin-stack.md @@ -0,0 +1,148 @@ +--- +title: gremlin-stack Stack +description: A Docker Swarm-based NetGrimoire stack for services including Ollama, Open WebUI, Qdrant, and N8N. +published: true +date: 2026-04-15T23:46:37.618Z +tags: docker, swarm, gremlin-stack, netgrimoire +editor: markdown +dateCreated: 2026-04-15T23:46:37.618Z +--- + +# gremlin-stack + +## Overview +The gremlin-stack is a Docker Swarm-based NetGrimoire stack that provides services including Ollama, Open WebUI, Qdrant, and N8N. + +--- + +## Architecture +| Service | Image | Port | Role | +|----------|-------|------|-------| +- **Host:** docker4 +- **Network:** netgrimoire +- **Exposed via:** ai.netgrimoire.com, n8n.netgrimoire.com, qdrant.netgrimoire.com +- **Homepage group:** homepage.group + +--- + +## Build & Configuration + +### Prerequisites +No specific prerequisites for this stack. + +### Volume Setup +```bash +mkdir -p /DockerVol/ollama +chown -R o-rwx /DockerVol/ollama +``` + +```bash +mkdir -p /DockerVol/open-webui +chown -R o-rwx /DockerVol/open-webui +``` + +```bash +mkdir -p /DockerVol/qdrant +chown -R o-rwx /DockerVol/qdrant +``` + +```bash +mkdir -p /DockerVol/n8n +chown -R o-rwx /DockerVol/n8n +``` + +### Environment Variables +| Variable | Description | +|----------|-------------| +# generate: openssl rand -hex 32 +WEBUI_SECRET_KEY= +N8N_USER= +N8N_PASSWORD= +NTFY_URL= +FORGEJO_URL= +FORGEJO_TOKEN= +FORGEJO_DOCS_OWNER= +FORGEJO_DOCS_REPO= +FORGEJO_WRITE_TOKEN= +OLLAMA_MODEL_GENERAL= +OLLAMA_MODEL_CODE= + +--- + +## Deploy +```bash +cd services/swarm/stack/gremlin-stack +set -a && source .env && set +a +docker stack config --compose-file gremlin-stack.stack.yml > resolved.yml +docker stack deploy --compose-file resolved.yml gremlin-stack +rm resolved.yml +docker stack services gremlin-stack +``` + +### First Run +Post-deploy steps specific to these services. + +--- + +## User Guide + +### Accessing gremlin-stack +| Service | URL | Purpose | +|---------|-----|---------| +Exposing via Caddy domains from labels: +- ai.netgrimoire.com +- n8n.netgrimoire.com +- qdrant.netgrimoire.com +Open WebUI: https://ai.netgrimoire.com + +### Primary Use Cases +How to actually use this in NetGrimoire. + +### NetGrimoire Integrations +Which other services this connects to — derive from env vars and labels. + +--- + +## Operations + +### Monitoring + +```bash +docker stack services gremlin-stack + +``` + +### Backups +Critical vs reconstructable /DockerVol/ paths. + +### Restore +```bash +cd services/swarm/stack/gremlin-stack +./deploy.sh +``` + +--- + +## Common Failures +5 specific failure modes with symptom, cause, fix. + +--- + +## Changelog + +| Date | Commit | Summary | +|------|--------|---------| +2026-04-15 | 9ed423bc | Initial documentation for gremlin-stack stack. +2026-04-15 | e544cddd | +2026-04-15 | 942855e4 | +2026-04-14 | 13d50426 | +2026-04-03 | e3955c7f | +| 954c02a1 | +| 94292307 | +| 0d2ae10e | +| 690a53f8 | +| 065c95f0 | + +Generated by Gremlin on 2026-04-15T23:46:37.618Z +Source: swarm/stack/Gremlin/gremlin-stack.yml +Review User Guide and Changelog sections \ No newline at end of file