This repository is designed to run n8n for free on GitHub Codespaces or other free hosting services.
The fastest way to run n8n on your local machine:
git clone https://github.com/ali-m07/n8n.git
cd n8n
docker-compose up -dThat's it! π n8n will be running on http://localhost:13000
Default credentials:
- Username:
admin - Password:
changeme
Useful commands:
# View logs
docker-compose logs -f n8n
# Stop n8n
docker-compose stop
# Start n8n
docker-compose start
# Restart n8n
docker-compose restart
# Stop and remove containers
docker-compose downNote: n8n will automatically start when Docker Desktop starts (thanks to restart: unless-stopped policy).
- Completely free - No credit card, no hosting setup
- 1000 executions/month - Usually enough for LinkedIn posting
- Always running - Perfect for scheduled posts
- All integrations - LinkedIn included
- Easiest setup - Just sign up and use!
- Always free VPS - No expiration
- Always running - Perfect for scheduled tasks
- Full control - Your own server
- Best for: Users who want self-hosted solution
- 60 free hours/month - Good for testing
- Stops when inactive - Not suitable for scheduled tasks
- Best for: Development, testing workflows
This is the easiest and truly free option! No hosting setup needed.
- Go to n8n.io and sign up (completely free)
- No credit card required
- Start creating workflows immediately
- Connect LinkedIn and schedule your posts
- Done! β
n8n Cloud Free Tier Includes:
- β 1000 workflow executions per month
- β Unlimited workflows
- β All integrations (LinkedIn, etc.)
- β Scheduled workflows
- β Webhooks
- β Always running
- β No hosting needed
Perfect for LinkedIn posting! 1000 executions/month is usually enough for daily/weekly posts.
Oracle Cloud offers a free VPS that never expires - perfect for hosting n8n!
- Go to cloud.oracle.com and sign up (no credit card needed)
- Create a free VM:
- Choose "Always Free" tier
- Select Ubuntu 22.04
- Use ARM-based Ampere A1 (4 VMs, 24GB RAM total) - FREE
- SSH into your VM and install Docker:
sudo apt update sudo apt install docker.io -y sudo systemctl start docker sudo usermod -aG docker $USER - Run n8n:
sudo docker run -d \ --name n8n \ -p 5678:5678 \ -v ~/.n8n:/home/node/.n8n \ -e N8N_BASIC_AUTH_ACTIVE=true \ -e N8N_BASIC_AUTH_USER=admin \ -e N8N_BASIC_AUTH_PASSWORD=your-password \ --restart unless-stopped \ docker.n8n.io/n8nio/n8n:latest - Access n8n at
http://your-vm-public-ip:5678
Oracle Cloud Benefits:
- β Always free (never expires)
- β Always running
- β Full control
- β No credit card required
- β Perfect for scheduled LinkedIn posts
Use GitHub Codespaces as your personal VM to run n8n - No server purchase needed!
GitHub Codespaces offers 60 free hours per month - perfect for running n8n workflows without buying a server or using your local machine.
- Free Tier: 60 hours/month (usually enough for development and testing)
- Auto-stop: Codespace stops after 30 minutes of inactivity (but you can keep it running)
- Data Persistence: All your workflows and data are saved in the Codespace
- Best for: Development, testing, and running workflows when you're actively working
- Go to your repository on GitHub: https://github.com/ali-m07/n8n
- Click the "Code" button (green button)
- Select the "Codespaces" tab
- Click "Create codespace on main"
- Wait for the Codespace to start (takes 1-2 minutes)
- n8n will automatically start - you'll see a notification about port 5678
- Click on the port notification or go to "Ports" tab
- Click "Open in Browser" next to port 5678
- n8n is installed and started automatically
- Port 5678 is forwarded automatically
- Your workflows are saved in
~/.n8ndirectory - Everything persists between sessions
- Inside Codespace:
http://localhost:5678 - Public URL: Codespaces creates a public URL automatically (check the Ports tab)
- No authentication by default (safe in private repositories)
-
Keep Codespace Running:
- Codespace stops after 30 minutes of inactivity
- To keep it running, you can:
- Use it regularly (any activity keeps it alive)
- Set up a simple keep-alive script if needed
-
Save Your Work:
- All workflows are automatically saved in
~/.n8n - Commit important workflows to the
n8n-workflowsrepository for backup
- All workflows are automatically saved in
-
Multiple Codespaces:
- You can create multiple Codespaces for different projects
- Each has its own isolated environment
-
Cost Management:
- Free: 60 hours/month
- Monitor usage in GitHub Settings β Billing
- Codespace stops automatically when you're not using it
- Create workflows in n8n (running in Codespace)
- Export workflows to save them:
- In n8n: Click workflow β "..." β "Download"
- Save to
workflows/directory
- Commit to repository:
git add workflows/your-workflow.json git commit -m "Add workflow: your-workflow" git push
Use Codespaces when:
- β You want a free VM without buying a server
- β You're actively developing/testing workflows
- β You don't need 24/7 uptime
- β You want to avoid using your local machine
Use n8n Cloud or Oracle Cloud when:
β οΈ You need 24/7 uptime for scheduled tasksβ οΈ You need workflows to run automatically without your presence
If you can keep your computer running, use Cloudflare Tunnel for free public access.
- Install n8n on your computer:
npm install -g n8n n8n start
- Install Cloudflare Tunnel:
- Download from cloudflare.com/products/tunnel
- Or use:
cloudflared tunnel --url http://localhost:5678
- Get free public URL from Cloudflare
- Access n8n from anywhere!
Benefits:
- β Completely free
- β No hosting needed
β οΈ Requires your computer to be on
This repository includes an automatic update system that keeps n8n up to date!
-
GitHub Actions Workflow:
- Runs daily at 2 AM UTC
- Checks for new n8n versions
- Updates version tracking automatically
- View status in the "Actions" tab
-
Docker Compose Configuration:
- Uses
latesttag withpull_policy: always - Automatically pulls newest version when container restarts
- No manual version updates needed!
- Uses
Option 1: Using the update script (Recommended)
./update-n8n.shOption 2: Using docker-compose
docker-compose pull
docker-compose up -dOption 3: Restart container (auto-pulls latest)
docker-compose restartdocker inspect n8n --format '{{ index .Config.Labels "org.opencontainers.image.version" }}'In the docker-compose.yml file, modify the following variables:
N8N_BASIC_AUTH_USER: usernameN8N_BASIC_AUTH_PASSWORD: password
In docker-compose.yml, change N8N_BASIC_AUTH_ACTIVE=true to false.
- Data: All workflows and settings are stored in the
n8n_datavolume - Security: In public environments, always enable authentication
- LinkedIn Integration:
- n8n Cloud: β Best option (1000 executions/month, always running, free)
- Oracle Cloud: Great for self-hosted (always free, always running)
- Local + Tunnel: Good if computer stays on
- Codespaces: Not recommended (stops when inactive)
- Limitations:
- n8n Cloud: 1000 executions/month (usually enough)
- Oracle Cloud: Free tier limits (usually sufficient)
- Local: Requires computer to be on
- Codespaces: 60 hours/month, stops when inactive
This repository uses the n8n license. For more details, see LICENSE.md.