services: n8n: image: n8nio/n8n:latest container_name: n8n restart: unless-stopped ports: - "5678:5678" environment: - GENERIC_TIMEZONE=America/Chicago - N8N_SECURE_COOKIE=false - NODE_OPTIONS=--max-old-space-size=1500 volumes: - n8n_data:/home/node/.n8n mem_limit: 2g memswap_limit: 2g healthcheck: test: ["CMD-SHELL", "wget -q --spider http://localhost:5678/healthz || exit 1"] interval: 30s timeout: 10s retries: 3 start_period: 120s logging: driver: "json-file" options: max-size: "50m" max-file: "3" volumes: n8n_data: external: true