diff --git a/Dockerfile b/Dockerfile index 6514956..4a423b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/config_creation/manual_config.yaml b/config_creation/manual_config.yaml index f87a008..9bd2943 100644 --- a/config_creation/manual_config.yaml +++ b/config_creation/manual_config.yaml @@ -92,7 +92,7 @@ media_player: vacuum: - platform: xiaomi_miio host: rockrobo - token: !secret local_ip + token: !secret vacuum_token group: !include groups.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml index 0847ff7..b4db945 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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" diff --git a/run_on_server.sh b/run_on_server.sh old mode 100644 new mode 100755 index 2fa6f1f..4eda3bd --- a/run_on_server.sh +++ b/run_on_server.sh @@ -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 \ No newline at end of file