19 lines
346 B
YAML
19 lines
346 B
YAML
|
---
|
||
|
version: "3"
|
||
|
services:
|
||
|
xiaomi2mqtt:
|
||
|
image: xiaomi2mqtt:latest
|
||
|
container_name: xiaomi2mqtt
|
||
|
user: root:root
|
||
|
environment:
|
||
|
- TZ=Europe/London
|
||
|
- MQTT_HOST=mqtt.lan
|
||
|
devices:
|
||
|
- /dev/bus/usb
|
||
|
network_mode: host
|
||
|
cap_add:
|
||
|
- SYS_ADMIN
|
||
|
- CAP_SYSLOG
|
||
|
- NET_ADMIN
|
||
|
restart: unless-stopped
|