Docker Compose

Im trying to find a docker compose that dose not include traffic in it. but i cant find one on the website

Describe the problem/error/question

trying to find a docker compose on the website but i cant.

What is the error message (if any)?

Please share your workflow


Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

@ThisWasNotTaken

1 Like

@ThisWasNotTaken

You’re not missing it, the docs don’t only provide a Traefik example. The Docker Compose page links to the n8n-hosting repo, where n8n provides different setups, and the main Docker docs also include a Postgres compose example.

If you don’t want Traefik, you can start from one of those and run n8n directly, then add Nginx or Caddy later if needed.

Yeah the docs only have the Traefik version which is annoying, but you really just need something super simple like this:

services:
  n8n:
    image: docker.n8n.io/n8nio/n8n
    restart: always
    ports:
      - "5678:5678"
    environment:
      - GENERIC_TIMEZONE=America/New_York
      - TZ=America/New_York
    volumes:
      - n8n_data:/home/node/.n8n
volumes:
  n8n_data:

Save that as docker-compose.yml and run docker compose up -d and youll have n8n running on port 5678. If you eventually need HTTPS for production Id look into Caddy as a reverse proxy since its way simpler than Traefik.