Skip to content

Instantly share code, notes, and snippets.

@mmahmoodictbd
Created February 6, 2023 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmahmoodictbd/8eecf45742ad831eecece073f8b45093 to your computer and use it in GitHub Desktop.
Save mmahmoodictbd/8eecf45742ad831eecece073f8b45093 to your computer and use it in GitHub Desktop.
Home Assistant and AppDaemon in Docker
version: '3.3'
services:
home-assistant:
container_name: "home-assistant"
image: homeassistant/home-assistant:latest
devices:
- /dev/ttyAMA0
healthcheck:
test: ["CMD", "curl", "-f", "http://192.168.1.244:8123"]
interval: 30s
timeout: 10s
retries: 6
environment:
- TZ=Europe/Amsterdam
ports:
- 8123:8123
privileged: true
volumes:
- ./deployment-raspberry-pi4/ha:/config
cap_add:
- NET_ADMIN
- NET_BIND_SERVICE
- SYS_ADMIN
network_mode: "host"
restart: unless-stopped
# Build image in Rpi.
# https://appdaemon.readthedocs.io/en/latest/
# git clone https://github.com/home-assistant/appdaemon.git
# cd appdaemon && docker build -t mmahmood/appdaemon --network=host .
appdaemon:
container_name: appdaemon
image: mmahmood/appdaemon:latest
environment:
HA_URL: "http://192.168.1.244:8123"
HA_KEY: "LONG_LIVED_HA_TOKEN"
DASH_URL: "http://appdaemon:5050"
ports:
- 5050:5050
volumes:
- /etc/localtime:/etc/localtime
- ./deployment-raspberry-pi4/appdaemon/config:/conf
depends_on:
- home-assistant
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment