-
-
Save arifnd/9d2e88608c2fd6be2711296679908b7d to your computer and use it in GitHub Desktop.
n8n compose file without caddy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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