From d778edc46a06a5df0a0616c0417cb7541215a153 Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Sun, 3 May 2026 16:47:40 +0200 Subject: [PATCH] First version --- docker-compose.env | 15 +++++++++++++++ docker-compose.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 docker-compose.env create mode 100644 docker-compose.yml diff --git a/docker-compose.env b/docker-compose.env new file mode 100644 index 0000000..46c1b6f --- /dev/null +++ b/docker-compose.env @@ -0,0 +1,15 @@ +# DOMAIN_NAME and SUBDOMAIN together determine where n8n will be reachable from +# The top level domain to serve from +DOMAIN_NAME=maison + +# 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=Europe/Paris + +# The email address to use for the TLS/SSL certificate creation +SSL_EMAIL=thedarty@gmail.com \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..83d15a3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +services: + n8n: + image: docker.n8n.io/n8nio/n8n + restart: always + ports: + - "127.0.0.1:5678:5678" + environment: + - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true + - N8N_RUNNERS_ENABLED=true + - N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME} + - N8N_PORT=5678 + - N8N_PROTOCOL=https + - NODE_ENV=production + - WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/ + - N8N_SSL_KEY=/opt/custom-certificates/n8n.maison.key + - N8N_SSL_CERT=/opt/custom-certificates/n8n.maison.crt + - GENERIC_TIMEZONE=${GENERIC_TIMEZONE} + - TZ=${GENERIC_TIMEZONE} + - N8N_LOG_LEVEL=info + - N8N_LOG_OUTPUT=file + - N8N_LOG_FORMAT=text + - N8N_DEFAULT_LOCALE=fr + volumes: + - /var/lib/docker/volumes/n8n/pki:/opt/custom-certificates + - /var/lib/docker/volumes/n8n/n8n_data:/home/node/.n8n + - /var/lib/docker/volumes/n8n/local-files:/files