Skip to content

marefr/homelab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homelab docker compose utilities

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
 ...

Private overrides

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.

Mirror private files as symbolic links

❯ 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
...

Remove symbolic links

❯ make unlink
./scripts/unlink.sh
+ unlink ./unifi-controller/compose.override.yaml
...

About

Homelab docker compose utilities

Topics

Resources

License

Stars

Watchers

Forks