refactor: switch n8n to named volumes. labels and env cleanup

This commit is contained in:
forust committed 2026-01-26 09:03:49 +01:00
1 parent d42ee5e6e1
commit 69cf82d4a4
2 files changed
+15 -18

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
N8N_PORT=5678
N8N_RUNNERS_ENABLED=true
NODE_ENV=production
GENERIC_TIMEZONE=Etc/UTC
TZ=Etc/UTC
N8N_SECURE_COOKIE=false
N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
+7 -18
View File
@@ -3,25 +3,11 @@ services:
image: docker.n8n.io/n8nio/n8n image: docker.n8n.io/n8nio/n8n
container_name: n8n container_name: n8n
restart: unless-stopped restart: unless-stopped
environment: env_file:
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true - .env
- N8N_PORT=5678
- N8N_RUNNERS_ENABLED=true
- NODE_ENV=production
- GENERIC_TIMEZONE=Europe/Bratislava
- TZ=Europe/Bratislava
- N8N_SECURE_COOKIE=false
- N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true
volumes: volumes:
- ./n8n-node-data:/home/node/.n8n - data:/home/node/.n8n
- ./n8n-files:/files - files:/files
extra_hosts:
- "enterprise.n8n.io:104.26.13.187"
- "enterprise.n8n.io:104.26.12.187"
- "enterprise.n8n.io:172.67.68.102"
dns:
- 1.1.1.1
- 8.8.8.8
networks: networks:
- proxy - proxy
- n8n - n8n
@@ -48,6 +34,9 @@ services:
- glance.icon=si:n8n - glance.icon=si:n8n
- glance.url=https://n8n.forust.xyz/ - glance.url=https://n8n.forust.xyz/
- glance.description=n8n is a workflow automation tool that enables you to connect various apps and services to automate tasks and processes. - glance.description=n8n is a workflow automation tool that enables you to connect various apps and services to automate tasks and processes.
volumes:
data:
files:
networks: networks:
n8n: n8n:
external: false external: false