Skip to content

Instantly share code, notes, and snippets.

@markizano
Created August 5, 2025 00:41
Show Gist options
  • Select an option

  • Save markizano/1f7229acd06d7f29820a8247e8219a91 to your computer and use it in GitHub Desktop.

Select an option

Save markizano/1f7229acd06d7f29820a8247e8219a91 to your computer and use it in GitHub Desktop.
n8n configuration
name: n8n
services:
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
network_mode: bridge
ports:
- "127.0.0.1:5678:5678"
environment:
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- SSL_OP_LEGACY_SERVER_CONNECT=1
volumes:
- ./n8n_data:/home/node/.n8n
- ./local-files:/files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment