-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.n8n.yml
More file actions
32 lines (32 loc) · 1.05 KB
/
docker-compose.n8n.yml
File metadata and controls
32 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
n8n:
image: docker.n8n.io/n8nio/n8n:next
restart: unless-stopped
depends_on:
tunnel-url-writer:
condition: service_completed_successfully
entrypoint: ["/opt/n8n-entrypoint.sh"]
ports:
- "5678:5678"
environment:
- GENERIC_TIMEZONE=Europe/Berlin
- EXECUTIONS_DATA_PRUNE=true
- N8N_RUNNERS_ENABLED=true
- EXECUTIONS_DATA_MAX_AGE=24
- DB_SQLITE_VACUUM_ON_STARTUP=true
- N8N_DEFAULT_BINARY_DATA_MODE=filesystem
- N8N_COMMUNITY_PACKAGES_ENABLED=true
- N8N_LOG_LEVEL=info
- N8N_LOG_OUTPUT=file
- N8N_LOG_FILE_LOCATION=/runtime/n8n.log
volumes:
- ./data/n8n:/home/node/.n8n
- ./runtime:/runtime
- ./local-files:/files
- ./shared:/shared
- ./scripts/n8n-entrypoint.sh:/opt/n8n-entrypoint.sh:ro
healthcheck:
test: ["CMD-SHELL", "node -e \"fetch('http://n8n:5678/healthz').then(r=>{if(!r.ok) throw new Error();}).then(()=>process.exit(0)).catch(()=>process.exit(1));\""]
interval: 15s
timeout: 5s
retries: 5