16 lines
525 B
YAML
16 lines
525 B
YAML
services:
|
|
<< service_name >>:
|
|
build:
|
|
context: https://github.com/tevonsb/homeassistant-mcp.git
|
|
container_name: << service_name >>
|
|
ports:
|
|
- "<< port >>:3000"
|
|
environment:
|
|
- HASS_HOST=<< hass_host >>
|
|
- HASS_TOKEN=<< hass_token >>
|
|
- HASS_SOCKET_URL=<< hass_host | replace("http://", "ws://") | replace("https://", "wss://") >>/api/websocket
|
|
- PORT=3000
|
|
- NODE_ENV=production
|
|
volumes:
|
|
- << data_dir >>/<< service_name >>:/app/data
|
|
restart: unless-stopped
|