Configuration and tools to manage my home network.
It will mostly be responsible for running our Unifi controller. It will also expose the Unifi controller to Prometheus for our home monitoring system.
Everything is put together using Docker Compose, so you should just be able to run:
docker compose up
Then open:
For environments where Docker Compose won't work (for example, because you're running a really old Mac as a server), you can run it in Vagrant with Virtualbox like so:
vagrant up
If you want to run this networking system all the time on a Mac that operates as a server, the easiest thing to do is launch the Vagrant VM as a macOS LaunchAgent.
To do that, you'll need to:
- Enable passwordless NFS mounting
- Install the LaunchAgent (assuming you're in this directory):
ln -s `pwd`/macOS-LaunchAgent.plist ~/Library/LaunchAgents/com.stevemarshall.StartHomeNetworking.plist
launchctl load ~/Library/LaunchAgents/com.stevemarshall.StartHomeNetworking.plistNB: We're currently assuming your vagrant is installed in
/opt/vagrant/bin, which mine is on the target machine, but isn't on
another. I'm not sure how to make LaunchAgents handle that for now.