This commit is contained in:
Martin Bauer 2019-06-30 22:57:34 +02:00
parent 2ce8f0c998
commit f7a5cf03e2
4 changed files with 8 additions and 5 deletions

View File

@ -1,5 +1,5 @@
FROM homeassistant/home-assistant
RUN apt-get update && apt-get install nodejs
RUN apt-get update && apt-get install -y nodejs
WORKDIR /config
CMD [ "./run.sh" ]
CMD [ "./run_on_server.sh" ]

View File

@ -92,7 +92,7 @@ media_player:
vacuum:
- platform: xiaomi_miio
host: rockrobo
token: !secret local_ip
token: !secret vacuum_token
group: !include groups.yaml

View File

@ -11,5 +11,6 @@ services:
devices:
- /dev/serial/by-id/usb-0658_0200-if00:/dev/ttyACM0
restart: always
ports:
- "8123:8123"
network_mode: host
#ports:
# - "8123:8123"

2
run_on_server.sh Normal file → Executable file
View File

@ -1,6 +1,8 @@
#!/bin/bash
cd /config
./make_config.sh server
./make_custom_frontend.sh
cd /usr/src/app
python -m homeassistant --config /config