mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
n8n tweaks
This commit is contained in:
+10
-4
@@ -3,18 +3,24 @@ services:
|
|||||||
image: ${N8N_IMAGE:-n8nio/n8n:latest}
|
image: ${N8N_IMAGE:-n8nio/n8n:latest}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOL_PATH}/n8n:/home/node/.n8n
|
- ${VOL_PATH}/n8n/data:/home/node/.n8n
|
||||||
- ${VOL_PATH}/n8n-files:/files
|
- ${VOL_PATH}/n8n/files:/files
|
||||||
ports:
|
ports:
|
||||||
- "5678:${N8N_PORT:-5678}"
|
- "${N8N_PORT:-5678}:${N8N_PORT:-5678}"
|
||||||
environment:
|
environment:
|
||||||
- GENERIC_TIMEZONE=${TZ:-America/Vancouver}
|
- GENERIC_TIMEZONE=${TZ:-America/Vancouver}
|
||||||
- TZ=${TZ:-America/Vancouver}
|
- TZ=${TZ:-America/Vancouver}
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- N8N_PROTOCOL=http
|
- N8N_PROTOCOL=${N8N_PROTOCOL:-http}
|
||||||
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
|
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
|
||||||
- DB_SQLITE_VACUUM_ON_STARTUP=false
|
- DB_SQLITE_VACUUM_ON_STARTUP=false
|
||||||
- N8N_PORT=${N8N_PORT:-5678}
|
- N8N_PORT=${N8N_PORT:-5678}
|
||||||
- N8N_HOST=${N8N_HOST:-http://localhost:5678}
|
- N8N_HOST=${N8N_HOST:-http://localhost:5678}
|
||||||
- WEBHOOK_URL=${N8N_HOST:-http://localhost:5678}
|
- WEBHOOK_URL=${N8N_HOST:-http://localhost:5678}
|
||||||
user: "1000:1000"
|
user: "1000:1000"
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
|||||||
+3
-2
@@ -1,7 +1,8 @@
|
|||||||
VOL_PATH=./data
|
VOL_PATH=/data
|
||||||
TZ="America/Vancouver"
|
TZ="America/Vancouver"
|
||||||
|
|
||||||
# n8n
|
# n8n
|
||||||
N8N_IMAGE=n8nio/n8n:latest # or 1.70.2
|
N8N_IMAGE=n8nio/n8n:latest # or 2.16.1
|
||||||
N8N_PORT=5678
|
N8N_PORT=5678
|
||||||
N8N_HOST=localhost
|
N8N_HOST=localhost
|
||||||
|
N8N_PROTOCOL=http
|
||||||
|
|||||||
Reference in New Issue
Block a user