Skip to content

Instantly share code, notes, and snippets.

@arifnd
Created July 22, 2025 03:27
Show Gist options
  • Select an option

  • Save arifnd/9d2e88608c2fd6be2711296679908b7d to your computer and use it in GitHub Desktop.

Select an option

Save arifnd/9d2e88608c2fd6be2711296679908b7d to your computer and use it in GitHub Desktop.
n8n compose file without caddy
# DOMAIN_NAME and SUBDOMAIN together determine where n8n will be reachable from
# The top level domain to serve from
DOMAIN_NAME=
# The subdomain to serve from
SUBDOMAIN=n8n
# The above example serve n8n at: https://n8n.example.com
# Optional timezone to set which gets used by Cron and other scheduling nodes
# New York is the default value if not set
GENERIC_TIMEZONE=Asia/Jakarta
# The email address to use for the TLS/SSL certificate creation
SSL_EMAIL=
services:
n8n:
image: docker.n8n.io/n8nio/n8n
restart: always
ports:
- 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}
volumes:
- n8n_data:/home/node/.n8n
- ./local-files:/files
volumes:
n8n_data:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment