Skip to content

Commit

Permalink
README upd
Browse files Browse the repository at this point in the history
  • Loading branch information
aceberg committed Jun 27, 2023
1 parent de3c450 commit 304efb3
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 4 deletions.
74 changes: 70 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,82 @@
[![Main-Docker](https://github.com/aceberg/miniboard/actions/workflows/main-docker.yml/badge.svg)](https://github.com/aceberg/miniboard/actions/workflows/main-docker.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/aceberg/miniboard)](https://goreportcard.com/report/github.com/aceberg/miniboard)
[![Maintainability](https://api.codeclimate.com/v1/badges/064657fe6ff0adb0d3ba/maintainability)](https://codeclimate.com/github/aceberg/miniboard/maintainability)
![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/aceberg/miniboard)

<h1><a href="https://github.com/aceberg/miniboard">
<img src="https://raw.githubusercontent.com/aceberg/miniboard/main/assets/logo.png" width="20" />
</a>miniboard</h1>
<br/>
Lightweight Dashboard with Tabs and online status check. Can be configured through GUI or yaml file.
Lightweight Dashboard with Tabs and online status check. Can be configured through GUI or yaml file.

- [Quick start](https://github.com/aceberg/miniboard#quick-start)
- [Usage](https://github.com/aceberg/miniboard#usage)
- [Config](https://github.com/aceberg/miniboard#config)
- [Options](https://github.com/aceberg/miniboard#options)
- [Local network only](https://github.com/aceberg/miniboard#local-network-only)
- [Thanks](https://github.com/aceberg/miniboard#thanks)

![screenshot](https://raw.githubusercontent.com/aceberg/miniboard/main/assets/Screenshot%202023-06-25%20at%2022-55-05%20MiniBoard%20-%20Docker.png)
<details>
<summary>Themes</summary>
<summary>More Themes</summary>
<img src="https://raw.githubusercontent.com/aceberg/miniboard/main/assets/MiniBoard%20-%20Themes.png">
</details>
</details>

## Quick start

```sh
docker run --name miniboard \
-v ~/.dockerdata/miniboard:/data/miniboard \
-p 8849:8849 \
aceberg/miniboard
```
Or use [docker-compose.yml](docker-compose.yml)


## Usage
All configuration can be done both with GUI or config file. To start with GUI first create new panel, then create new tab with this panel. Then you can add as many hosts (to panels), panels and tabs as you want.
<br>
Also, you can start with example [board.yaml](configs/board.yaml) file. All fields are commented there.


## Config
Configuration can be done through config file or environment variables

| Variable | Description | Default |
| -------- | ----------- | ------- |
| HOST | Listen address | 0.0.0.0 |
| PORT | Port for web GUI | 8849 |
| THEME | Any theme name from https://bootswatch.com in lowcase | flatly |
| COLOR | Background color: light or dark | dark |
| COLORON | Online host color | #89ff89 |
| COLOROFF | Offline host color | #ff3232 |
| BTNWIDTH | Adjust buttons to theme | 180px |

## Options
| Key | Description | Default |
| -------- | ----------- | ------- |
| -b | Path to board file | /data/miniboard/board.yaml |
| -c | Path to config file | /data/miniboard/config.yaml |
| -n | Path to node modules (see below) | "" |

## Local network only
By default, this app pulls themes, icons and fonts from the internet. But, in some cases, it may be useful to have an independent from global network setup. I created a separate [image](https://github.com/aceberg/my-dockerfiles/tree/main/node-bootstrap) with all necessary modules and fonts.
Run with Docker:
```sh
docker run --name node-bootstrap \
-p 8850:8850 \
aceberg/node-bootstrap
```
```sh
docker run --name miniboard \
-v ~/.dockerdata/miniboard:/data/miniboard \
-p 8849:8849 \
aceberg/miniboard -n "http://127.0.0.1:8850"
```
Or use [docker-compose](docker-compose-local.yml)

<a href="https://www.flaticon.com/free-icons/skateboard" title="skateboard icons">Skateboard icons created by Freepik - Flaticon</a>
## Thanks
- All go packages listed in [dependencies](https://github.com/aceberg/miniboard/network/dependencies)
- Favicon and logo: [Skateboard icons created by Freepik - Flaticon](https://www.flaticon.com/free-icons/skateboard)
- [Bootstrap](https://getbootstrap.com/)
- Themes: [Free themes for Bootstrap](https://bootswatch.com)
22 changes: 22 additions & 0 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: "3"
services:
node-bootstrap:
image: aceberg/node-bootstrap
restart: unless-stopped
ports:
- 8850:8850
miniboard:
image: aceberg/miniboard
restart: unless-stopped
ports:
- 8849:8849
command: "-n http://127.0.0.1:8850"
depends_on:
- node-bootstrap
volumes:
- ~/.dockerdata/miniboard:/data/miniboard # app data (set your own path instead of dockerdata)
environment:
HOST: "0.0.0.0" # optional, default: 0.0.0.0
PORT: "8849" # optional, default: 8849
THEME: "flatly" # optional, default: flatly
COLOR: "dark" # optional, default: dark
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3"
services:
miniboard:
image: aceberg/miniboard
restart: unless-stopped
ports:
- 8849:8849
volumes:
- ~/.dockerdata/miniboard:/data/miniboard # app data (set your own path instead of dockerdata)
environment:
HOST: "0.0.0.0" # optional, default: 0.0.0.0
PORT: "8849" # optional, default: 8849
THEME: "flatly" # optional, default: flatly
COLOR: "dark" # optional, default: dark

0 comments on commit 304efb3

Please sign in to comment.