From e4851e267120346baf1007a114a441f5d6806f7d Mon Sep 17 00:00:00 2001 From: Maksym Buz <79866323+xopek-by@users.noreply.github.com> Date: Wed, 30 Jul 2025 22:44:06 +0200 Subject: [PATCH] Working files --- n8n/.env | 2 +- n8n/compose.yml | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/n8n/.env b/n8n/.env index 6534837..6215cc8 100644 --- a/n8n/.env +++ b/n8n/.env @@ -1,3 +1,3 @@ DOMAIN=example.com GENERIC_TIMEZONE=Europe/Warsaw -PATH_TO_DATA=/home/user/docker/n8n \ No newline at end of file +PATH_TO_FILES=/home/user/docker/n8n \ No newline at end of file diff --git a/n8n/compose.yml b/n8n/compose.yml index 15542cb..70061d9 100644 --- a/n8n/compose.yml +++ b/n8n/compose.yml @@ -1,9 +1,10 @@ services: n8n: image: docker.n8n.io/n8nio/n8n + container_name: n8n restart: unless-stopped ports: - - ":5678:5678" + - 5678:5678 environment: - N8N_HOST=${DOMAIN} - N8N_PORT=5678 @@ -11,5 +12,9 @@ services: - NODE_ENV=production - WEBHOOK_URL=https://${DOMAIN}/ - GENERIC_TIMEZONE=${GENERIC_TIMEZONE} + - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true volumes: - - ${PATH_TO_DATA}:/home/node/.n8n \ No newline at end of file + - n8n_data:/home/node/.n8n + - ${PATH_TO_FILES}:/files +volumes: + n8n_data: \ No newline at end of file