-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 1.78 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (42 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
services:
openhab-semantic-mcp:
build: .
container_name: openhab-semantic-mcp
ports:
- "${MCP_PORT:-8000}:${MCP_PORT:-8000}"
environment:
# OpenHAB Configuration - Replace with your actual values
- OPENHAB_BASE_URL=${OPENHAB_BASE_URL:-https://your-openhab-instance.org}
- OPENHAB_API_TOKEN=${OPENHAB_API_TOKEN}
# MCP Server Configuration
- MCP_HOST=${MCP_HOST:-0.0.0.0}
- MCP_PORT=${MCP_PORT:-8000}
- MCP_TRANSPORT=${MCP_TRANSPORT:-streamable-http}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
# Inventory Configuration
- INVENTORY_REFRESH_MINUTES=${INVENTORY_REFRESH_MINUTES:-60}
# Monitoring Configuration
- MONITORING_WEBHOOK_URL=${MONITORING_WEBHOOK_URL}
- MONITORING_WEBHOOK_AUTH_HEADER=${MONITORING_WEBHOOK_AUTH_HEADER}
- MONITORING_FILE=${MONITORING_FILE:-monitoring_tasks.json}
- MONITORING_STORAGE_TYPE=${MONITORING_STORAGE_TYPE:-memory}
- MONITORING_STORAGE_CONFIG=${MONITORING_STORAGE_CONFIG:-{}}
- MONITORING_TIMEZONE=${MONITORING_TIMEZONE:-UTC}
# Cleanup Configuration
- MONITORING_CLEANUP_INTERVAL=${MONITORING_CLEANUP_INTERVAL:-60}
- MONITORING_RETAIN_COMPLETED_DAYS=${MONITORING_RETAIN_COMPLETED_DAYS:-7}
- MONITORING_RETAIN_CANCELLED_DAYS=${MONITORING_RETAIN_CANCELLED_DAYS:-3}
- MONITORING_RETAIN_ERROR_DAYS=${MONITORING_RETAIN_ERROR_DAYS:-7}
- MONITORING_ENABLE_AUTO_CLEANUP=${MONITORING_ENABLE_AUTO_CLEANUP:-true}
restart: unless-stopped
healthcheck:
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/localhost/${MCP_PORT:-8000} && exit 0 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- openhab-network
networks:
openhab-network:
driver: bridge