services: n8n: image: n8nio/n8n restart: always ports: - "5678:5678" volumes: - n8n_data:/home/node/.n8n environment: # The host URL where n8n will be accessible. Change to your domain or IP. - N8N_HOST=${N8N_HOST:-localhost} - N8N_PORT=5678 - N8N_PROTOCOL=http # This is the URL that n8n will send to external services for webhooks. # Make sure to update this to your publicly accessible URL. - WEBHOOK_URL=${WEBHOOK_URL:-http://localhost:5678/} # Explicitly set secure cookie to false for testing with HTTP - N8N_SECURE_COOKIE=false # Set your desired timezone - GENERIC_TIMEZONE=${GENERIC_TIMEZONE:-Europe/Berlin} # Database configuration - using SQLite for simplicity with fewer tasks - DB_TYPE=sqlite # No specific host, database, user, or password needed for SQLite # depends_on is no longer needed without postgres volumes: n8n_data: