Originally started this out for https://github.com/technicalpickles/picklehome/issues/73 . The use of network_mode: host caused some problems using it initially, because cadadvisor was already using port 8080, and unifi wanted it too.
I dropped a few of the containers to regular type networking which allowed that to proceed. Basically, for places that need access to the host's ports, I add an extra_hosts entry. For readability, I use the same name of the container that provides the thing.
I did get the unifi controller running, but I had problems with adopting the first switch. Between that, and separating concerns, I ended up picking up a unifi cloud key.
Originally started this out for https://github.com/technicalpickles/picklehome/issues/73 . The use of
network_mode: host
caused some problems using it initially, because cadadvisor was already using port 8080, and unifi wanted it too.I dropped a few of the containers to regular type networking which allowed that to proceed. Basically, for places that need access to the host's ports, I add an
extra_hosts
entry. For readability, I use the same name of the container that provides the thing.I did get the unifi controller running, but I had problems with adopting the first switch. Between that, and separating concerns, I ended up picking up a unifi cloud key.