Sheet & Flow
Launch offer: 20% off every product and bundle with code LAUNCH20 until October 14, 2026. Browse the store

n8n Docker Compose Generator

Using the files

  1. Point a DNS A record for your domain at the server. Open ports 80 and 443.
  2. Put the three files in one folder, e.g. ~/n8n, and run chmod 600 .env.
  3. Run docker compose up -d, then open https://your-domain and create the owner account.
  4. Set up backups before you build workflows: How to back up n8n properly.

Full walkthrough: Self-host n8n with Docker Compose, Postgres and HTTPS. Output of this generator was checked with docker compose config and caddy validate.

Not affiliated with n8n GmbH. n8n is a trademark of its owner. Prefer not to run a server? n8n Cloud is the hosted option (n8n.io).