-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (52 loc) · 1.45 KB
/
docker-compose.yml
File metadata and controls
65 lines (52 loc) · 1.45 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
65
version: '3.8'
services:
metabase-mcp-server:
build: .
container_name: metabase-mcp-server
environment:
# Required: Your Metabase instance URL
- METABASE_URL=https://your-metabase-instance.com
# Option 1: Use API Key (recommended)
- METABASE_API_KEY=your_metabase_api_key
# Option 2: Use Username/Password (if API key not available)
# - METABASE_USERNAME=your_username
# - METABASE_PASSWORD=your_password
# Optional: Set log level
- LOG_LEVEL=info
# Optional: Node environment
- NODE_ENV=production
# Use stdin and tty for MCP communication
stdin_open: true
tty: true
# Optional: Mount volumes for persistent data if needed
# volumes:
# - ./data:/app/data
# Optional: Network settings
# networks:
# - mcp-network
# Optional: Resource limits
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
reservations:
cpus: '0.1'
memory: 128M
# Restart policy
restart: unless-stopped
# Optional: Health check
healthcheck:
test: ["CMD", "node", "-e", "console.log('Health check passed')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Create custom network
# networks:
# mcp-network:
# driver: bridge
# Optional: Named volumes
# volumes:
# mcp-data:
# driver: local