Run locally
Terminal
$ npx launchfile up n8n Requires Docker Desktop. No source code needed — pulls pre-built images and starts n8n with all dependencies.
Image:
n8nio/n8n:latest Launchfile
View on GitHub
# yaml-language-server: $schema=https://launchfile.dev/schema/v1
version: launch/v1
name: n8n
description: "Workflow automation tool"
image: n8nio/n8n:latest
provides:
- protocol: http
port: 5678
exposed: true
requires:
- type: postgres
set_env:
DB_POSTGRESDB_HOST: $host
DB_POSTGRESDB_PORT: $port
DB_POSTGRESDB_DATABASE: $name
DB_POSTGRESDB_USER: $user
DB_POSTGRESDB_PASSWORD: $password
env:
DB_TYPE:
default: "postgresdb"
N8N_ENCRYPTION_KEY:
generator: secret
sensitive: true
description: "Encryption key for stored credentials"
WEBHOOK_URL:
description: "Public URL for webhook triggers"
storage:
data:
path: /home/node/.n8n
persistent: true
health: /healthz
restart: always Test Results
Last Tested
2026-04-06
Health Check
Passing
Startup Time
11s
Total Disk
1401 MB
Required Services
postgres
Learn More
Spec references for features used in this Launchfile.