TEST: Complex docker-compose rework. Not tested yet
This commit is contained in:
8
Docker/n8n/.env.example
Normal file
8
Docker/n8n/.env.example
Normal file
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
24
Docker/n8n/docker-compose.yml
Normal file
24
Docker/n8n/docker-compose.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
n8n:
|
||||
image: docker.n8n.io/n8nio/n8n
|
||||
container_name: n8n
|
||||
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}
|
||||
volumes:
|
||||
- n8n_data:/home/node/.n8n
|
||||
- ${PATH_TO_FILES}:/files
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:5678/healthz || exit 1"]
|
||||
interval: 1m
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
volumes:
|
||||
n8n_data:
|
||||
Reference in New Issue
Block a user