This repository is part of the ForgeMindAI YouTube channel, where we explore practical AI automation tools and workflows. Here, you'll find a ready-to-use Docker Compose setup to kickstart your own AI-powered automation.
This repository provides a Docker Compose setup to orchestrate the following services:
- n8n (workflow automation tool)
- PostgreSQL (as n8n's database)
- Qdrant (vector search engine for AI-related tasks)
- n8n-import (a one-time service to import workflows and credentials)
- The core automation platform.
- Exposes port
5678. - Mounts volumes for persistent storage, workflow/credential backups, and shared data.
- Depends on:
postgres(healthy)n8n-import(successful completion)
- Lightweight PostgreSQL database (v16-alpine).
- Stores data in the
postgres_storagevolume. - Includes a health check to ensure it's ready before other services connect.
- A short-lived container to import existing credentials and workflows from the
/n8n/backupdirectory. - Uses the same configuration as the main
n8nservice. - Runs once, before the main
n8ncontainer starts.
- A high-performance vector database used for semantic search or AI-powered features.
- Exposes port
6333for API access. - Persists data in
qdrant_storage.
| Name | Purpose |
|---|---|
n8n_storage |
Stores n8n's internal configuration and workflow data |
postgres_storage |
Stores PostgreSQL data |
qdrant_storage |
Stores Qdrant data |
| Name | Purpose |
|---|---|
demo |
Shared network between all services |
Make sure to define the following variables in a .env file or your shell environment:
POSTGRES_USERPOSTGRES_PASSWORDPOSTGRES_DBN8N_ENCRYPTION_KEYN8N_USER_MANAGEMENT_JWT_SECRET
- Create your
.envfile with the required variables. - Place your credentials and workflows in
n8n/backup. - Run the stack:
docker-compose up -d
- Copy the docker compose to seperate directory.
- use
docker compose up -dto start the container. - Ensure you have docker command line installed.
- use
docker compose downto stop the container.
