https://github.com/marefr/homelab-docker-compose
Homelab docker compose utilities
https://github.com/marefr/homelab-docker-compose
docker-compose
Last synced: 2 months ago
JSON representation
Homelab docker compose utilities
- Host: GitHub
- URL: https://github.com/marefr/homelab-docker-compose
- Owner: marefr
- License: apache-2.0
- Created: 2024-12-02T13:56:47.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-03T00:54:20.000Z (6 months ago)
- Last Synced: 2025-03-28T22:30:13.399Z (2 months ago)
- Topics: docker-compose
- Language: Shell
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Homelab docker compose utilities
Utiliies to ease managing docker compose stacks in a homelab and/or in your home network.
```shell
❯ 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 `/`, e.g. `homelab-private/unifi-controller/compose.override.yaml`.
Optionally create an `//override` directory to symlink additional files.
### Mirror private files as symbolic links
```shell
❯ 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
```shell
❯ make unlink
./scripts/unlink.sh
+ unlink ./unifi-controller/compose.override.yaml
...
```