Docker files

This commit is contained in:
Martin Bauer 2019-06-30 21:58:01 +02:00
parent 59932d5338
commit 28e3b77c15
3 changed files with 22 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{ {
"data": [ "data": [
{ {
"last_seen": "2019-06-30T19:14:10.003604+00:00", "last_seen": "2019-06-30T19:44:11.001489+00:00",
"state": { "state": {
"attributes": { "attributes": {
"editable": true, "editable": true,

15
docker-compose.yaml Normal file
View File

@ -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"

6
run.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
./make_config.sh
./make_custom_frontend.sh
python -m homeassistant --config /config