From 527d330e726cb4ade639d503733b0c19e8156b0e Mon Sep 17 00:00:00 2001 From: Maksym Buz Date: Tue, 26 Aug 2025 17:31:19 +0200 Subject: [PATCH] CHANGE: Removed environment from docker compose --- n8n/.env.example | 12 ++++++++---- n8n/docker-compose.yml | 9 ++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/n8n/.env.example b/n8n/.env.example index 55befc9..088d428 100644 --- a/n8n/.env.example +++ b/n8n/.env.example @@ -1,8 +1,12 @@ -# Domain for n8n -DOMAIN=n8n.example.com - # Your timezone GENERIC_TIMEZONE=Europe/Warsaw - # Directory where n8n will store files PATH_TO_FILES=/path/to/n8n/files +# Domain for n8n +DOMAIN_NAME=mbuz.uk +SUBDOMAIN=automate +N8N_HOST=automate.mbuz.uk +N8N_PROTOCOL=https +# URL to webhook for the webhook triggers +WEBHOOK_URL=https://automate.mbuz.uk/ +NODE_ENV=production \ No newline at end of file diff --git a/n8n/docker-compose.yml b/n8n/docker-compose.yml index cf9588a..a3cdf77 100644 --- a/n8n/docker-compose.yml +++ b/n8n/docker-compose.yml @@ -5,13 +5,8 @@ services: restart: unless-stopped ports: - 5678:5678 - environment: - - N8N_HOST=${DOMAIN} - - N8N_PORT=5678 - - N8N_PROTOCOL=https - - NODE_ENV=production - - WEBHOOK_URL=https://${DOMAIN}/ - - GENERIC_TIMEZONE=${GENERIC_TIMEZONE} + env_file: + - .env volumes: - n8n_data:/home/node/.n8n - ${PATH_TO_FILES}:/files