Sign inSign up

mastermindzh/servicehub

By mastermindzh

Updated over 8 years ago

Image
0

174

mastermindzh/servicehub repository overview

Servicehub

Simple little app which is easy to configure, shows services in a neat grid-formation and lets you know whether they are available.

Docker image: https://hub.docker.com/r/mastermindzh/servicehub/

Example image

example image

Configuration

The entire configuration of this app can be done through a single .json file located in the data directory.

The JSON looks like this:

{
  "footerText": "Text for the footer",
  "headerText": "Text for the header",
  "icons": [
    {
        "link": "https://facebook.com/rickvanlieshoutt",
        "code": "fa-facebook"
    }
  ],
  "items": [
    {
      "title": "Jackett",
      "background": "#fff",
      "image": "images/jackett.png",
      "link": "https://github.com/Jackett/Jackett",
      "size": 4
    }
  ]
}

The icons array takes icon objects with a link and a code. The code will be in Font awesome format.

The items object consists of the following key/value pairs:

KeyValue
titleSearchable title for the service
backgroundcss notation of a background color (or image, gradient, etc.)
imagepath to an image to show on the card
linkThe URL to which the card should point
sizesize of the card - ranges from 1 through 12

Make changes as you see fit and refresh the page to render the new items.

Run as docker

Running as a docker in incredibly simple, you can execute the following command to run the test image:

docker run -d -p 80:80 mastermindzh/servicehub

To insert your data simply mount the config file using a volume mount:

-v /full/path/to/file:/usr/share/nginx/html/data/data.json

You can do the same thing with the images folder to provide your own images (if you don't want to use public images):

-v path/to/images/folder:/usr/share/nginx/html/images/

The entire command would be:

docker run -d -p 80:80 -v $("pwd")/data.json:/usr/share/nginx/html/data/data.json -v $("pwd")/images:/usr/share/nginx/html/images mastermindzh/servicehub

Tag summary

Content type

Image

Digest

Size

43.7 MB

Last updated

over 8 years ago

docker pull mastermindzh/servicehub