Setting up n8n automation on the network

As far as back end automation goes, n8n offers an amazing set of features and plugins. We love to use it so I wanted to create a quick guide on how to self host it easily within just a few steps. This guide assumes that you already have flyctl set up. If not, use our guide on that here.

Set up a new fly project

Create a fly.toml file to start your project. You may use the example below. You can adjust the Executions settings if you need more history. I have it like that to save database space.

# fly.toml app configuration file generated for blle-n8n on 2024-02-01T21:07:37-06:00
# See for information about how to use this file.

app = 'your-app-name'
primary_region = 'pick a reagion'

  image = 'n8nio/n8n'

  GENERIC_TIMEZONE = 'America/Chicago'
  N8N_HOST = ''
  N8N_PORT = '8080'
  N8N_PROTOCOL = 'https'
  WEBHOOK_URL = 'the url to the fly server'

  source = 'n8n_vol'
  destination = '/home/node/.n8n'

  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 1
  processes = ['app']
  hard_limit = 100
  soft_limit = 50
  type = "connections"

  cpu_kind = 'shared'
  cpus = 1
  memory_mb = 512

Create a volume to store your database so you don't loose your work between reboots.

flyctl volumes create n8n_vol

Now you can deploy your self hosted instance of n8n.

flyctl deploy

##Update your instance as new releases roll out

The n8n team does an amazing job of rolling out updates so you will want to do this every few weeks or so. This command will get you the latest version installed.

flyctl deploy --no-cache
Featured Articles
Deploying CakePHP to using Docker
A quick guide on how to create your Docker file for CakePHP when using for deployment
Using Tailwind with CakePHP
A quick guide for setting up Tailwind CSS with CakePHP
Deploying Flowise to
A quick guide on how to deploy a Flowise server to the network
Creating a static HTML template for Tailwind and Alpine JS
A guide for creating a basic HTML template that uses Tailwind for styling and Alpine JS for interactive elements