services: n8n: image: n8nio/n8n:latest container_name: n8n restart: unless-stopped environment: - TZ=${TZ:-Europe/Berlin} - GENERIC_TIMEZONE=${TZ:-Europe/Berlin} - N8N_HOST=${N8N_HOST:-localhost} - N8N_PORT=5678 - N8N_PROTOCOL=${N8N_PROTOCOL:-http} - WEBHOOK_URL=${WEBHOOK_URL:-http://localhost:5678/} # Required. Generate with: openssl rand -hex 32 - N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY:?encryption key required} - N8N_RUNNERS_ENABLED=true ports: - "${HTTP_PORT:-5678}:5678" volumes: - ${DATA_PATH:-/srv/n8n}:/home/node/.n8n