docker-compose small changes
This commit is contained in:
@@ -15,49 +15,18 @@ will turn on plug/heater and translate devices state from gateway:
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Config
|
## Config
|
||||||
|
Edit file config/config-sample.yaml and rename it to config/config.yaml
|
||||||
|
|
||||||
Sample config file (config.yaml):
|
## Docker-Compose
|
||||||
|
Sample docker-compose.yaml file for user:
|
||||||
```
|
```
|
||||||
mqtt:
|
aqara:
|
||||||
server: 192.168.1.2
|
image: monster1025/aqara-mqtt
|
||||||
port: 1883
|
container_name: aqara
|
||||||
username: username
|
volumes:
|
||||||
password: passw0rd
|
- "./config:/app/config"
|
||||||
prefix: home
|
net: host
|
||||||
|
restart: always
|
||||||
gateway:
|
|
||||||
password: passw0rd
|
|
||||||
|
|
||||||
sids:
|
|
||||||
# motion
|
|
||||||
158d0000e7c7ad:
|
|
||||||
model: motion
|
|
||||||
name: hall
|
|
||||||
|
|
||||||
# temperature
|
|
||||||
158d0001149b3c:
|
|
||||||
model: sensor_ht
|
|
||||||
name: living
|
|
||||||
|
|
||||||
# plugs
|
|
||||||
158d00010dd98d:
|
|
||||||
model: plug
|
|
||||||
name: heater
|
|
||||||
|
|
||||||
# buttons
|
|
||||||
158d00012d5720:
|
|
||||||
model: switch
|
|
||||||
name: kitchen
|
|
||||||
|
|
||||||
# cube
|
|
||||||
158d00011065e3:
|
|
||||||
model: cube
|
|
||||||
name: main
|
|
||||||
|
|
||||||
# gateway
|
|
||||||
f0b429aa1463:
|
|
||||||
model: gateway
|
|
||||||
name: main
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Related projects
|
## Related projects
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
xiaomi:
|
aqara:
|
||||||
build: .
|
build: .
|
||||||
dockerfile: Dockerfile-i386
|
dockerfile: Dockerfile-i386
|
||||||
container_name: xiaomi
|
container_name: aqara
|
||||||
volumes:
|
volumes:
|
||||||
- "./config:/app/config"
|
- "./config:/app/config"
|
||||||
net: host
|
net: host
|
||||||
|
|||||||
Reference in New Issue
Block a user