-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
31 lines (29 loc) · 1.14 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
version: '3.8'
services:
smartthings-bridge:
build: .
container_name: smartthings-homekit-bridge
restart: unless-stopped
# Use host networking for HomeKit/mDNS to work properly
# This allows the HAP server to be discovered and connected to by iOS devices
network_mode: host
environment:
- NODE_ENV=production
# SmartThings credentials (set these in .env file)
- SMARTTHINGS_CLIENT_ID=${SMARTTHINGS_CLIENT_ID}
- SMARTTHINGS_CLIENT_SECRET=${SMARTTHINGS_CLIENT_SECRET}
- SMARTTHINGS_REDIRECT_URI=${SMARTTHINGS_REDIRECT_URI:-http://localhost:3000/auth/callback}
# HAP_PORT: Use 52826 to avoid conflict with Homebridge (which uses 51826)
- HAP_PORT=${HAP_PORT:-52826}
volumes:
# Persist HomeKit pairing data
- homekit_data:/app/homekit
# Optional: bind mount for configuration
- ./config:/app/config:ro
# Note: ports section is not used with network_mode: host
# The container will use the host's network directly
# Web interface: http://localhost:3000
# HAP server: port 52826 (default, configurable via HAP_PORT)
volumes:
homekit_data:
driver: local