> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-host n8n AI Starter Kit with Docker

> n8n wired to a local Ollama model and a Qdrant vector store, ready for private AI workflows.

n8n wired to a local Ollama model and a Qdrant vector store, ready for private AI workflows.

This page describes the Levelrail template for n8n AI Starter Kit (AI). It deploys the services below as one Docker Compose app on your own server. Project site: [https://docs.n8n.io/advanced-ai](https://docs.n8n.io/advanced-ai).

Recommended memory: about 4096 MiB.

## Services, ports and volumes

| Service | Image | Container ports | Volumes |
| - | - | - | - |
| `db` | `postgres:16-alpine` | none | `n8n_ai_db_data -&#62; /var/lib/postgresql/data` |
| `n8n` | `n8nio/n8n:1.62.1` | 5678 | `n8n_ai_data -&#62; /home/node/.n8n` |
| `ollama` | `ollama/ollama:0.34.4` | none | `n8n_ai_ollama -&#62; /root/.ollama` |
| `qdrant` | `qdrant/qdrant:v1.12.4` | none | `n8n_ai_qdrant -&#62; /qdrant/storage` |

## Environment variables

| Service | Variable | Value |
| - | - | - |
| `db` | `POSTGRES_DB` | Preset in the template |
| `db` | `POSTGRES_PASSWORD` | Generated at deploy |
| `db` | `POSTGRES_USER` | Preset in the template |
| `n8n` | `DB_POSTGRESDB_DATABASE` | Preset in the template |
| `n8n` | `DB_POSTGRESDB_HOST` | Preset in the template |
| `n8n` | `DB_POSTGRESDB_PASSWORD` | Generated at deploy |
| `n8n` | `DB_POSTGRESDB_USER` | Preset in the template |
| `n8n` | `DB_TYPE` | Preset in the template |
| `n8n` | `N8N_ENCRYPTION_KEY` | Generated at deploy |
| `n8n` | `OLLAMA_HOST` | Preset in the template |

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

## Deploy n8n AI Starter Kit with Levelrail

In the dashboard, open **Apps**, choose **New app**, then **Browse templates**, and select n8n AI Starter Kit. Review the Compose body and deploy.

With the CLI:

```bash theme={"dark"}
levelrail-cli templates deploy n8n-ai-starter --name my-n8n-ai-starter
```

See the [service template catalog](/templates-and-registry) for how templates work, and [Getting started](/getting-started) if you have not installed Levelrail yet.

## More AI templates

* [AnythingLLM](/self-host/anythingllm)
* [ComfyUI](/self-host/comfyui)
* [Flowise](/self-host/flowise)
* [Flowise (Postgres + Qdrant)](/self-host/flowise-postgres)
* [Jupyter GPU Notebook](/self-host/jupyter-gpu)

All templates are listed in the [self-host gallery](/self-host).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.