Skip to content

Instantly share code, notes, and snippets.

@ahbanavi
Last active March 3, 2025 07:15
Show Gist options
  • Save ahbanavi/308b27b5538559352dac960d48772cde to your computer and use it in GitHub Desktop.
Save ahbanavi/308b27b5538559352dac960d48772cde to your computer and use it in GitHub Desktop.
Docker Compose configuration for setting up n8n
# https://gist.github.com/ahbanavi/308b27b5538559352dac960d48772cde
services:
n8n:
image: docker.n8n.io/n8nio/n8n
container_name: n8n
restart: always
environment:
N8N_SECURE_COOKIE: false # If you also want to use it with localhost
WEBHOOK_URL: https://n8n.example.com # The domain configured in Cloudflare Zero Trust
ports:
- "5678:5678"
volumes:
- n8n_data:/home/node/.n8n
volumes:
n8n_data:
external: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment