Files
docker-compose-cookbooks/n8n/compose.yaml
T
2026-04-16 22:33:08 +00:00

29 lines
808 B
YAML

services:
n8n:
image: ${N8N_IMAGE:-n8nio/n8n:latest}
restart: unless-stopped
volumes:
- ${VOL_PATH}/n8n/data:/home/node/.n8n
- ${VOL_PATH}/n8n/files:/files
ports:
- "${N8N_PORT:-5678}:${N8N_PORT:-5678}"
environment:
- GENERIC_TIMEZONE=${TZ:-America/Vancouver}
- TZ=${TZ:-America/Vancouver}
- NODE_ENV=production
- N8N_PROTOCOL=${N8N_PROTOCOL:-http}
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- DB_SQLITE_VACUUM_ON_STARTUP=false
- N8N_PORT=${N8N_PORT:-5678}
- N8N_HOST=${N8N_HOST:-localhost}
- WEBHOOK_URL=${N8N_HOST:-http://localhost:5678}
- N8N_SECURE_COOKIE=${N8N_SECURE_COOKIE:-true}
- HOME=/home/node
user: "1000:1000"
networks:
- proxy
networks:
proxy:
external: true