Last weekend I took the plunge and reinstalled my home server, upgrading it to Ubuntu 18.04 after having had a number of problems with the previous installation. Instead of running a couple of KVM machines I decided to move everything to Docker. So far I installed Docker CE, Docker Compose and a number of stand-alone containers without problems but when it comes to HASS, InfluxDB and Grafana I’m at a loss.
My original idea was to use a separate compose file for each container but I can’t make out the network settings for the three containers. I’ve tried creating a bridged network, using the _default network, linking and network_mode=host in various combinations. Maybe it’s easier to use a single compose file anyway but how do I set up the networking there?
Can someone help me with a working example of docker-compose.yml with (at least) the three services mentioned above?
Obviously I want HASS and Grafana to be accessible in my browser.