7 changed files with 98 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||||
|
# Replace <directory-path> with the path where you created folders earlier |
||||
|
DATA_FOLDER=/<directory-path>/n8n-docker-caddy |
||||
|
|
||||
|
# The top level domain to serve from, this should be the same as the subdomain you created above |
||||
|
DOMAIN_NAME=example.com |
||||
|
|
||||
|
# The subdomain to serve from |
||||
|
SUBDOMAIN=n8n |
||||
|
|
||||
|
# DOMAIN_NAME and SUBDOMAIN combined decide where n8n will be reachable from |
||||
|
# above example would result in: https://n8n.example.com |
||||
|
|
||||
|
# Optional timezone to set which gets used by Cron-Node by default |
||||
|
# If not set New York time will be used |
||||
|
GENERIC_TIMEZONE=Europe/Berlin |
||||
|
|
||||
|
# The email address to use for the SSL certificate creation |
||||
|
SSL_EMAIL=[email protected] |
@ -0,0 +1,21 @@ |
|||||
|
MIT License |
||||
|
|
||||
|
Copyright (c) 2022 n8n - Workflow Automation |
||||
|
|
||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
|
of this software and associated documentation files (the "Software"), to deal |
||||
|
in the Software without restriction, including without limitation the rights |
||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
|
copies of the Software, and to permit persons to whom the Software is |
||||
|
furnished to do so, subject to the following conditions: |
||||
|
|
||||
|
The above copyright notice and this permission notice shall be included in all |
||||
|
copies or substantial portions of the Software. |
||||
|
|
||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||
|
SOFTWARE. |
@ -0,0 +1,19 @@ |
|||||
|
# n8n-docker-caddy |
||||
|
|
||||
|
Get up and running with n8n on the following platforms: |
||||
|
|
||||
|
* [DigitalOcean tutorial](https://docs.n8n.io/hosting/server-setups/digital-ocean/) |
||||
|
* [Hetzner Cloud tutorial](https://docs.n8n.io/hosting/server-setups/hetzner/) |
||||
|
|
||||
|
If you have questions after trying the tutorials, check out the [forums](https://community.n8n.io/). |
||||
|
|
||||
|
## Prerequisites |
||||
|
|
||||
|
Self-hosting n8n requires technical knowledge, including: |
||||
|
|
||||
|
* Setting up and configuring servers and containers |
||||
|
* Managing application resources and scaling |
||||
|
* Securing servers and applications |
||||
|
* Configuring n8n |
||||
|
|
||||
|
n8n recommends self-hosting for expert users. Mistakes can lead to data loss, security issues, and downtime. If you aren't experienced at managing servers, n8n recommends [n8n Cloud](https://n8n.io/cloud/). |
@ -0,0 +1,5 @@ |
|||||
|
n8n.<domain>.<suffix> { |
||||
|
reverse_proxy n8n:5678 { |
||||
|
flush_interval -1 |
||||
|
} |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
version: "3.7" |
||||
|
|
||||
|
services: |
||||
|
caddy: |
||||
|
image: caddy:latest |
||||
|
restart: unless-stopped |
||||
|
ports: |
||||
|
- "80:80" |
||||
|
- "443:443" |
||||
|
volumes: |
||||
|
- caddy_data:/data |
||||
|
- ${DATA_FOLDER}/caddy_config:/config |
||||
|
- ${DATA_FOLDER}/caddy_config/Caddyfile:/etc/caddy/Caddyfile |
||||
|
|
||||
|
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 |
||||
|
- ${DATA_FOLDER}/local_files:/files |
||||
|
|
||||
|
volumes: |
||||
|
caddy_data: |
||||
|
external: true |
||||
|
n8n_data: |
||||
|
external: true |
Loading…
Reference in new issue