lab-ops
Personal utility tools for my homelab.
Installation
You can build and install the tool using Cargo:
# Install latest versoin from crates.io
# Install directly from git
# Or build directly from project root
Or download the pre-compiled binary at https://github.com/FAZuH/lab-ops/releases
Usage
dockernet
Prints IP addresses and port bindings of Docker containers
lab-ops dockernet
natmap
Manage iptables NAT rules for static VMs and dynamic Docker port remapping. Runs as a systemd daemon with a Unix socket API. See docs/natmap/usage.md for full documentation.
auto-discover
crates/auto-discover/ — Service discovery daemon that watches Docker events, manages port forwarding via lab-ops natmap, registers services with Consul, and generates nginx configs stored in Consul KV. See docs/auto-discover/usage.md for full documentation.
Global Options
| Flag | Description |
|---|---|
-v / -vv / -vvv+ |
Increase verbosity (info → debug → trace) |
--color auto|always|never |
Control ANSI color output (default: auto, respects NO_COLOR) |
Shell Completions
Generate completion scripts for bash, zsh, fish, powershell, or elvish:
# Write to a completions directory
# Or append to your .rc file (bash / zsh)
After installing, restart your shell or run source ~/.zshrc / source ~/.bashrc to activate.