Levelrail
Skip to content

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.

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.

Recommended memory: about 4096 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
dbpostgres:16-alpinenone
n8n_ai_db_data -> /var/lib/postgresql/data
n8nn8nio/n8n:1.62.15678
n8n_ai_data -> /home/node/.n8n
ollamaollama/ollama:0.34.4none
n8n_ai_ollama -> /root/.ollama
qdrantqdrant/qdrant:v1.12.4none
n8n_ai_qdrant -> /qdrant/storage

Environment variables ​

ServiceVariableValue
dbPOSTGRES_DBPreset in the template
dbPOSTGRES_PASSWORDGenerated at deploy
dbPOSTGRES_USERPreset in the template
n8nDB_POSTGRESDB_DATABASEPreset in the template
n8nDB_POSTGRESDB_HOSTPreset in the template
n8nDB_POSTGRESDB_PASSWORDGenerated at deploy
n8nDB_POSTGRESDB_USERPreset in the template
n8nDB_TYPEPreset in the template
n8nN8N_ENCRYPTION_KEYGenerated at deploy
n8nOLLAMA_HOSTPreset 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:

levelrail-cli templates deploy n8n-ai-starter --name my-n8n-ai-starter

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More AI templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.