Skip to content

halos-org/homarr-container-adapter

Repository files navigation

homarr-container-adapter

Adapter service for Homarr dashboard: handles first-boot setup with HaLOS branding and auto-discovers Docker containers for the dashboard.

Features

  • First-boot setup: Completes Homarr onboarding, creates admin user, configures theming
  • Container auto-discovery: Monitors Docker containers with homarr.* labels
  • State persistence: Remembers removed apps, tracks sync status

Installation

# Install the Debian package
sudo apt install homarr-container-adapter

Usage

# Run first-boot setup (usually called by systemd)
homarr-container-adapter setup

# Sync Docker containers with Homarr
homarr-container-adapter sync

# Check adapter status
homarr-container-adapter status

Docker Labels

Add these labels to containers for Homarr visibility:

labels:
  homarr.enable: "true"
  homarr.name: "My App"
  homarr.url: "http://localhost:8080"
  homarr.description: "App description"
  homarr.icon: "https://example.com/icon.png"
  homarr.category: "Tools"

Configuration

Adapter config: /etc/homarr-container-adapter/config.toml Branding config: /etc/halos-homarr-branding/branding.toml (from halos-homarr-branding package)

Building

# Build debug
cargo build

# Build release
cargo build --release

# Run tests
cargo test

Development

Pre-commit Hooks

This project uses lefthook for pre-commit hooks to run format and lint checks locally before commits.

Setup:

# Install lefthook (one-time)
brew install lefthook

# Enable hooks in this repo
./run hooks-install

What it checks:

  • cargo fmt --check - Code formatting
  • cargo clippy --all-targets --all-features -- -D warnings - Linting

Skip hooks when needed:

git commit --no-verify -m "WIP: message"

Related Packages

  • homarr-container - Homarr dashboard container
  • halos-homarr-branding - HaLOS branding configuration

License

MIT License - Matti Airas

About

Rust adapter for Homarr dashboard: first-boot setup and auto-discovery

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors