This guide follows the official Docker Compose setup for a self-hosted n8n instance.
mkdir n8n-compose
cd n8n-compose
.env fileCreate an .env file and set values for your instance (domain, protocol, timezone, and credentials). The official guide lists the required variables and examples.
local-files directorymkdir local-files
Use the official Docker Compose configuration from the n8n docs (or the n8n-hosting repository) and save it as compose.yaml in this directory.
docker compose up -d
Open http://your-domain-or-ip:5678 and complete the initial setup.
Check the n8n Docker Compose documentation or reach out via our contact page.