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