From 28e3b77c15b25b60630e87f97288fb95aabc524e Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Sun, 30 Jun 2019 21:58:01 +0200 Subject: [PATCH] Docker files --- .storage/core.restore_state | 2 +- docker-compose.yaml | 15 +++++++++++++++ run.sh | 6 ++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yaml create mode 100644 run.sh diff --git a/.storage/core.restore_state b/.storage/core.restore_state index e61ba20..3d2f7c5 100644 --- a/.storage/core.restore_state +++ b/.storage/core.restore_state @@ -1,7 +1,7 @@ { "data": [ { - "last_seen": "2019-06-30T19:14:10.003604+00:00", + "last_seen": "2019-06-30T19:44:11.001489+00:00", "state": { "attributes": { "editable": true, diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..0847ff7 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,15 @@ +version: '3' +services: + homeassistant: + container_name: home-assistant + build: + context: . + dockerfile: Dockerfile + volumes: + - /volumes/homeassistant_config:/config + - /etc/localtime:/etc/localtime:ro + devices: + - /dev/serial/by-id/usb-0658_0200-if00:/dev/ttyACM0 + restart: always + ports: + - "8123:8123" diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..1d00c0a --- /dev/null +++ b/run.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +./make_config.sh +./make_custom_frontend.sh + +python -m homeassistant --config /config \ No newline at end of file