I am trying to start HomeAssistant and AppDaemon from one docker-compose file.
The beauty of this, is that the containers can be linked by name. So I do not have to know the IP address HomeAssistant is running on, docker-compose will take care of this. However, this does not work for AppDaemon. I have the following docker-compose.yaml:
The HA_URL environment variable in the appdaemon service is not filled in correctly. There are some examples where people use a hard-coded IP address, but I do not know this address when starting docker-compose and (as a principle) would like to avoid hard-coded addresses anyway.
Does anyone have an idea how to have docker-compose use the correct HA_URL value, so AppDaemon can connect to HomeAssistant?
If I add an additional service for testing in the docker-compose.yaml
Thnx for the quick reply. I added a ha network to all services, but AppDaemon still complains “WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds”.
Adding a http password does not make a difference.
And I haven’t found a way yet to enable debug for AppDaemon in docker-compose.
Slight topic hijack, but are you running this on a pi? I wanted to throw up an appdaemon container but the default one didn’t appear to be pi compatible
No, this was for Docker on Windows (my test environment). I am running my HA on a PCengines APU2 board. Very reliable and stable hardware (but still within budget), because of the wife-acceptance-factor. I burned too many SD cards on my pi to consider is production-worthy.
I am migrating from a FreeBSD jail to Linux Docker containers now.
Nice. I’ve been looking at upgrades and keep going back and forth between a NUC. I’m about 2 years into HASS usage though and still yet to have an SD card issue…
I’m trying to build a docker app containing hassio and appdaemon so that the kodi input select works, however I cannot get appdaemon to communicate with hassio using your docker file.
I now use macvlans for networking, as I want to be able to route different containers to different physical network interfaces, so your milage might vary.
Node-red is disabled as I migrated to appdaemon.
HA Dashboard is not working (still have to figure out why this does not work).