Add appdaemon

This commit is contained in:
2020-05-10 23:22:34 +03:00
parent 05b867c8e6
commit 2cf08c2d99
+30 -13
View File
@@ -5,19 +5,6 @@ volumes:
mosquitto_log: {} mosquitto_log: {}
services: services:
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant:stable
volumes:
- ../config:/config
devices:
- /dev/ttyACM0:/dev/ttyACM0
- /dev/ttyACM1:/dev/ttyACM1
environment:
- TZ=Europe/Sofia
restart: always
network_mode: host
mosquitto: mosquitto:
container_name: mosquitto container_name: mosquitto
image: eclipse-mosquitto:latest image: eclipse-mosquitto:latest
@@ -30,3 +17,33 @@ services:
- "1883:1883" - "1883:1883"
- "9001:9001" - "9001:9001"
restart: always restart: always
homeassistant:
container_name: home-assistant
image: homeassistant/home-assistant:stable
volumes:
- ../config:/config
devices:
- /dev/ttyACM0:/dev/ttyACM0
- /dev/ttyACM1:/dev/ttyACM1
environment:
- TZ=Europe/Sofia
restart: always
network_mode: host
depends_on:
- mosquitto
appdaemon:
container_name: appdaemon
image: acockburn/appdaemon:latest
environment:
- HA_URL="http://homeassistant:8123/"
- TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhZGUyYTRkNjQ1MGU0ZmViYjcwZjg3ODQwMDM2YmEzYiIsImlhdCI6MTU4OTE0MjAzMSwiZXhwIjoxOTA0NTAyMDMxfQ.m5o3_AalDcmeA7lw-kKM4PM3VTuOrggbRlX_actp_do"
- DASH_URL="http://$HOSTNAME:5050"
ports:
- 5050:5050
volumes:
- ${HOME}/docker_data/appdaemon/config:/conf
depends_on:
- homeassistant