Railway

Deploy n8n

N8N Template for Scalable n8n with Integrated Backup

Deploy n8n

/var/lib/postgresql/data

Primary

n8nio/n8n

Just deployed

Just deployed

Worker

n8nio/n8n

Just deployed

Webhook

n8nio/n8n

Just deployed

Just deployed

/bitnami

Deploy on Railway

This Railway template sets up a robust automation platform using:

  1. n8n: Low-code automation tool with a visual workflow editor.

  2. Worker: Handles background tasks, allowing for horizontal scaling.

  3. PostgreSQL: Primary database for storing workflows, executions, and credentials.

  4. Redis: Acts as a message broker between the main instance and workers.

  5. Webhook: Public URL endpoint for triggering workflows.

  6. Backup to Google Drive: Scheduled n8n workflow to back up workflows to Google Drive.

Ideal for:

  1. Automating business logic.

  2. Integrating APIs.

  3. Creating no-code workflows.

  4. Ensuring regular backups to Google Drive.

Installation Guide

  1. Deploy the Template

Click the button below to deploy the template on Railway:

Deploy on Railway

This will set up the all services (dont need to change any varibales)

  1. Set Up Google Drive Backup Workflow (not must - its must)

To automate backups of your n8n workflows DB to Google Drive:

  1. Create a Google Service Account:

    • Go to Google Cloud Console.

    • Create a new project or select an existing one.

    • Navigate to "APIs & Services" > "Credentials".

    • Click "Create Credentials" > "Service Account".

    • Follow the prompts to create the service account.

      After creation, go to the service account Download the JSON file.

  2. Enable Google Drive API:

    • In the Google Cloud Console, navigate to "APIs & Services" > "Library".
    • Search for "Google Drive API" and enable it.
  3. Store Service Account Credentials in Railway:

    • In your Railway project, go to the Google Drive Backup Service.
    • Add an environment variable named GOOGLE_SERVICE_ACCOUNT and paste the contents of the JSON file as its value.
    • Add an environment variable named GDRIVE_FOLDER and add folder name to save.
    • Add an environment variable named SHARE_EMAIL and add your email to get notification.
  4. After deployment - Accessing n8n

    • Access the n8n Primary UI via the provided Railway domain.
    • Create user and pass and login.

Enjoy


Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
View Template
NEW
Evolution API with n8n
WhatsApp HTTP REST API with n8n automation, PostgreSQL and Redis.

codestorm
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates