-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (59 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
64 lines (59 loc) · 1.78 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
x-shared: &shared
restart: unless-stopped
environment:
- N8N_DIAGNOSTICS_ENABLED=false
- N8N_RUNNERS_ENABLED=true
- N8N_RUNNERS_MODE=external
- N8N_RUNNERS_AUTH_TOKEN=${RUNNERS_AUTH_TOKEN}
- N8N_RUNNERS_BROKER_LISTEN_ADDRESS=0.0.0.0
- N8N_RUNNERS_BROKER_PORT=5001
- N8N_NATIVE_PYTHON_RUNNER=true
- N8N_SKIP_AUTH_ON_OAUTH_CALLBACK=false
- N8N_RESTRICT_FILE_ACCESS_TO=./n8n-files
- N8N_GIT_NODE_DISABLE_BARE_REPOS=true
- DB_TYPE=sqlite
- DB_SQLITE_POOL_SIZE=10
- N8N_BLOCK_ENV_ACCESS_IN_NODE=true
- N8N_SECURE_COOKIE=false
- N8N_DEFAULT_BINARY_DATA_MODE=filesystem
- N8N_SECURE_COOKIE=false
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false
- N8N_PORT=5000
- WEBHOOK_URL=http://localhost:5000
volumes:
- ./data:/home/node/.n8n
- ./dist:/home/node/.n8n/custom/node_modules/${REPO_NAME}
- ./node_modules:/home/node/.n8n/custom/node_modules
- /etc/localtime:/etc/localtime:ro
- ./fonts:/usr/local/share/fonts:ro
- ./n8n-task-runners.json:/etc/n8n-task-runners.json:ro
extra_hosts:
- "host.docker.internal:host-gateway"
services:
n8n:
image: n8nio/n8n:latest
container_name: n8n-dev
<<: *shared
ports:
- 5000:5000
n8n-workers:
image: n8nio/n8n:latest
<<: *shared
container_name: n8n-workers-dev
depends_on:
- n8n
n8n-runners:
image: n8nio/runners:latest
container_name: n8n-runners-dev
<<: *shared
environment:
- N8N_RUNNERS_TASK_BROKER_URI=http://n8n:5001
- N8N_RUNNERS_LAUNCHER_HEALTH_CHECK_PORT=5009
- N8N_RUNNERS_AUTH_TOKEN=${RUNNERS_AUTH_TOKEN}
depends_on:
- n8n
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5009/healthz"]
interval: 30s
timeout: 10s
retries: 3