n8n
N8N Template for Scalable n8n with Integrated Backup
Postgres
railwayapp-templates/postgres-ssl
Just deployed
/var/lib/postgresql/data
Primary
n8nio/n8n
Just deployed
PostgresGBackup
omryatia/postgres-gdrive-backup
Just deployed
Worker
n8nio/n8n
Just deployed
Webhook
n8nio/n8n
Just deployed
Redis
bitnami/redis
Just deployed
/bitnami
This Railway template sets up a robust automation platform using:
-
n8n: Low-code automation tool with a visual workflow editor.
-
Worker: Handles background tasks, allowing for horizontal scaling.
-
PostgreSQL: Primary database for storing workflows, executions, and credentials.
-
Redis: Acts as a message broker between the main instance and workers.
-
Webhook: Public URL endpoint for triggering workflows.
-
Backup to Google Drive: Scheduled n8n workflow to back up workflows to Google Drive.
Ideal for:
-
Automating business logic.
-
Integrating APIs.
-
Creating no-code workflows.
-
Ensuring regular backups to Google Drive.
Installation Guide
- 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)
- Set Up Google Drive Backup Workflow (not must - its must)
To automate backups of your n8n workflows DB to Google Drive:
-
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.
-
-
Enable Google Drive API:
- In the Google Cloud Console, navigate to "APIs & Services" > "Library".
- Search for "Google Drive API" and enable it.
-
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.
-
After deployment - Accessing n8n
- Access the n8n Primary UI via the provided Railway domain.
- Create user and pass and login.
Enjoy
Template Content
Primary
n8nio/n8nPostgresGBackup
omryatia/postgres-gdrive-backupWorker
n8nio/n8nWebhook
n8nio/n8nRedis
bitnami/redis