# Self-host n8n AI Starter Kit

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

- Page: https://levelrail.com/templates/n8n-ai-starter/
- JSON: https://levelrail.com/templates/n8n-ai-starter.json
- Category: AI
- Licence: LicenseRef-n8n-SUL (Source available)
- Source: https://github.com/n8n-io/n8n
- Upstream docs: https://docs.n8n.io/advanced-ai

## Requirements
- Memory: about 4 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | postgres | 16-alpine | none | n8n_ai_db_data -> /var/lib/postgresql/data |
| n8n | n8nio/n8n | 1.62.1 | 5678 | n8n_ai_data -> /home/node/.n8n |
| ollama | ollama/ollama | 0.34.4 | none | n8n_ai_ollama -> /root/.ollama |
| qdrant | qdrant/qdrant | v1.12.4 | none | n8n_ai_qdrant -> /qdrant/storage |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| n8n | DB_POSTGRESDB_DATABASE | preset |
| n8n | DB_POSTGRESDB_HOST | preset |
| n8n | DB_POSTGRESDB_PASSWORD | generated |
| n8n | DB_POSTGRESDB_USER | preset |
| n8n | DB_TYPE | preset |
| n8n | N8N_ENCRYPTION_KEY | generated |
| n8n | OLLAMA_HOST | preset |

## Deploy

### CLI

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

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/n8n-ai-starter/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy n8n AI Starter Kit on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for n8n AI Starter Kit, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, n8nio/n8n:1.62.1, ollama/ollama:0.34.4, qdrant/qdrant:v1.12.4 is what you deploy there.

Self-host n8n AI Starter Kit, n8n AI Starter Kit docker compose file, deploy n8n AI Starter Kit on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
