Utiliies to ease managing docker compose stacks in a homelab and/or in your home network.
❯ make
./scripts/up.sh
[+] Running 1/1
✔ unifi Pulled 2.5s
[+] Running 3/3
✔ Network unifi-controller_default Created 0.0s
✔ Container unifi-controller-mongodb-1 Started 0.2s
✔ Container unifi-controller-unifi-1 Started 0.2s
...
❯ make down
./scripts/down.sh
[+] Running 3/2
✔ Container unifi-controller-unifi-1 Removed 2.2s
✔ Container unifi-controller-mongodb-1 Removed 0.1s
✔ Network unifi-controller_default Removed 0.0s
...
Create a homelab-private
directory/repository one level up from this.
Create a docker compose override by putting a compose.override.yaml
and optionally other files in <private repo>/<dir>
, e.g. homelab-private/unifi-controller/compose.override.yaml
.
Optionally create an <private repo>/<dir>/override
directory to symlink additional files.
❯ make link
./scripts/link.sh
+ ln -sf /Users/marcus/go/src/github.com/marefr/homelab-private/unifi-controller/compose.override.yaml ./unifi-controller/compose.override.yaml
...
❯ make unlink
./scripts/unlink.sh
+ unlink ./unifi-controller/compose.override.yaml
...