Sign inSign up

bltavares/home-consule

By bltavares

•Updated almost 5 years ago

A (micro) dashboard for your homelab integrated with Consul

Image
0

2.2K

bltavares/home-consule repository overview

⁠home-consule

Repository homepage⁠

A (micro) dashboard for your homelab integrated with Consul⁠

⁠Usage

This project will feed Consul's service catalogue into a handlebar⁠ template file.

It will serve the current directiory staticaly, so you can include images and CSS if needed.

A basic index.hbs template looks like:

<h1>Welcome to the Homelab</h1>
<img src="/static/header.jpg" />
<ul>
    {{#each this}}
    <li><a href="https://{{this}}.example.com">{{this}}</a></li>
    {{/each}}
</ul>

⁠Run

This project aims to run on Docker with minimal size, and also targets multiplaform builds, including Windows, Linux and Raspberry Pi (Zero to 4).

You can either compile it with cargo build --release or use the provided bltavares/home-consule Docker image.

⁠Targets
PlatformDockerSize
armv7-musleabihfYes4.69MB
arm-musleabiYes4.79MB
aarch64-muslYes4.69MB
x86_64-muslYes6.07MB
WindowsNo5.81MB
MacNoN/A
⁠Docker

Example command for Docker

docker run -d \
  --restart=unless-stopped \
  -v ${PWD}:/app \
  -p 3000:3000 \
  -e CONSUL_HTTP_TOKEN \
  -e CONSUL_HTTP_ADDR \
  --name home \
  bltavares/home-consule

⁠Build

To build and publish multi-architecture docker images:

make all
make publish
make manifest

Tag summary

Content type

Image

Digest

Size

2.4 MB

Last updated

almost 5 years ago

docker pull bltavares/home-consule