forked from czlonkowski/n8n-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.buildkit.yml
More file actions
44 lines (42 loc) · 1.1 KB
/
docker-compose.buildkit.yml
File metadata and controls
44 lines (42 loc) · 1.1 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
# Docker Compose file with BuildKit optimizations for faster builds
# This now builds without n8n dependencies for ultra-fast builds
version: '3.8'
services:
n8n-mcp:
build:
context: .
dockerfile: Dockerfile
# Enable BuildKit
x-bake:
cache-from:
- type=gha
- type=local,src=/tmp/.buildx-cache
cache-to:
- type=gha,mode=max
- type=local,dest=/tmp/.buildx-cache-new,mode=max
args:
BUILDKIT_INLINE_CACHE: 1
image: n8n-mcp:latest
container_name: n8n-mcp
ports:
- "3000:3000"
environment:
- MCP_MODE=${MCP_MODE:-http}
- AUTH_TOKEN=${AUTH_TOKEN}
- NODE_ENV=${NODE_ENV:-production}
- LOG_LEVEL=${LOG_LEVEL:-info}
- PORT=3000
volumes:
# Mount data directory for persistence
- ./data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
# Use external network if needed
networks:
default:
name: n8n-mcp-network