https://github.com/forgemind-git/n8n-tutorial
This repository is part of the ForgeMind AI YouTube channel and is designed to help you get started with n8n, a powerful workflow automation tool.
https://github.com/forgemind-git/n8n-tutorial
Last synced: 5 months ago
JSON representation
This repository is part of the ForgeMind AI YouTube channel and is designed to help you get started with n8n, a powerful workflow automation tool.
- Host: GitHub
- URL: https://github.com/forgemind-git/n8n-tutorial
- Owner: Forgemind-git
- License: apache-2.0
- Created: 2025-04-03T03:00:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-03T03:04:32.000Z (over 1 year ago)
- Last Synced: 2025-08-12T13:55:50.185Z (11 months ago)
- Size: 452 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ForgeMindAI - Docker Compose & n8n Workflow
This repository is part of the [ForgeMindAI](https://www.youtube.com/@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.
## N8N starter Docker Environment
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)
---
## 🧱 Services
### 1. `n8n`
- 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)
### 2. `postgres`
- Lightweight PostgreSQL database (v16-alpine).
- Stores data in the `postgres_storage` volume.
- Includes a health check to ensure it's ready before other services connect.
### 3. `n8n-import`
- A short-lived container to import existing credentials and workflows from the `/n8n/backup` directory.
- Uses the same configuration as the main `n8n` service.
- Runs once, before the main `n8n` container starts.
### 4. `qdrant`
- A high-performance vector database used for semantic search or AI-powered features.
- Exposes port `6333` for API access.
- Persists data in `qdrant_storage`.
---
## 🔄 Volumes
| Name | Purpose |
|-------------------|-----------------------------------------|
| `n8n_storage` | Stores n8n's internal configuration and workflow data |
| `postgres_storage`| Stores PostgreSQL data |
| `qdrant_storage` | Stores Qdrant data |
---
## 🌐 Networks
| Name | Purpose |
|--------|-----------------------|
| `demo` | Shared network between all services |
---
## ⚙️ Environment Variables
Make sure to define the following variables in a `.env` file or your shell environment:
- `POSTGRES_USER`
- `POSTGRES_PASSWORD`
- `POSTGRES_DB`
- `N8N_ENCRYPTION_KEY`
- `N8N_USER_MANAGEMENT_JWT_SECRET`
---
## 🚀 Usage
1. Create your `.env` file with the required variables.
2. Place your credentials and workflows in `n8n/backup`.
3. Run the stack:
```bash
docker-compose up -d
## Steps to bring up container
1. Copy the docker compose to seperate directory.
2. use `docker compose up -d` to start the container.
3. Ensure you have docker command line installed.
4. use `docker compose down` to stop the container.