]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - README.md
Improve demo content
[github/bastienwirtz/homer.git] / README.md
CommitLineData
a9aed9f9 1<h1 align="center">
1d3287dc
BW
2 <img
3 width="180"
4 alt="Homer's donut"
5 src="https://raw.githubusercontent.com//bastienwirtz/homer/main/public/logo.png">
a9aed9f9
BW
6 <br/>
7 Homer
8</h1>
9
10<h4 align="center">
1d3287dc 11 A dead simple static <strong>HOM</strong>epage for your serv<strong>ER</strong> to keep your services on hand, from a simple <code>yaml</code> configuration file.
a9aed9f9
BW
12</h4>
13
14<p align="center">
1d3287dc
BW
15 <strong>
16 <a href="https://homer-demo.netlify.app">Demo</a>
17
18 <a href="https://gitter.im/homer-dashboard/community">Chat</a>
19
20 <a href="#getting-started">Getting started</a>
21 </strong>
a9aed9f9
BW
22</p>
23<p align="center">
1d3287dc
BW
24 <a href="https://opensource.org/licenses/Apache-2.0"><img
25 alt="License: Apache 2"
26 src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a>
a9aed9f9 27 <a href="https://gitter.im/homer-dashboard/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img
1d3287dc
BW
28 alt="Gitter chat"
29 src="https://badges.gitter.im/homer-dashboard/community.svg"></a>
a9aed9f9 30 <a href="https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip"><img
1d3287dc
BW
31 alt="Download homer static build"
32 src="https://img.shields.io/badge/Download-homer.zip-orange"></a>
e9faffbb
SO
33 <a href="https://twitter.com/acdlite/status/974390255393505280"><img
34 alt="speed-blazing"
35 src="https://img.shields.io/badge/speed-blazing%20%F0%9F%94%A5-red"></a>
1d3287dc
BW
36 <a href="https://github.com/awesome-selfhosted/awesome-selfhosted"><img
37 alt="Awesome"
38 src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg"></a>
a9aed9f9
BW
39</p>
40
41<p align="center">
1d3287dc 42 <img src="https://raw.github.com/bastienwirtz/homer/main/docs/screenshot.png" width="100%">
a9aed9f9 43</p>
a4de4a3a 44
e1470a8c 45## Table of Contents
1d3287dc 46
e1470a8c
BW
47- [Features](#features)
48- [Getting started](#getting-started)
1bc75494 49- [Configuration](docs/configuration.md)
92d899bd 50- [Custom services](docs/customservices.md)
1bc75494 51- [Tips & tricks](docs/tips-and-tricks.md)
2662b170 52- [Development](docs/development.md)
7129af3b 53- [Troubleshooting](docs/troubleshooting.md)
a4de4a3a 54
e1470a8c 55## Features
1d3287dc 56
e1470a8c
BW
57- [yaml](http://yaml.org/) file configuration
58- Installable (pwa)
59- Search
86f4680a 60- Grouping
e1470a8c 61- Theme customization
26dbed93 62- Offline health check
e1470a8c
BW
63- keyboard shortcuts:
64 - `/` Start searching.
65 - `Escape` Stop searching.
66 - `Enter` Open the first matching result (respects the bookmark's `_target` property).
67 - `Alt`/`Option` + `Enter` Open the first matching result in a new tab.
09763dbf 68
e1470a8c 69## Getting started
22555b55 70
b5bf9774 71Homer is a full static html/js dashboard, based on a simple yaml configuration file. See [documentation](docs/configuration.md) for information about the configuration (`assets/config.yml`) options.
b79e6ed1 72
b5bf9774 73It's meant to be served by an HTTP server, **it will not work if you open the index.html directly over file:// protocol**.
1bc75494 74
b79e6ed1
BW
75### Using docker
76
77```sh
9ba0d54e
BW
78docker run -d \
79 -p 8080:8080 \
80 -v </your/local/assets/>:/www/assets \
81 --restart=always \
82 b4bz/homer:latest
b79e6ed1
BW
83```
84
b5bf9774
BW
85The container will run using a user uid and gid 1000. Add `--user <your-UID>:<your-GID>` to the docker command to adjust it. Make sure this match the ownership of your assets directory.
86
87**Environment variables:**
049f8522
BW
88
89* **`INIT_ASSETS`** (default: `1`)
766efb1a 90Install example configuration file & assets (favicons, ...) to help you get started.
897f67f0 91
049f8522
BW
92* **`SUBFOLDER`** (default: `null`)
93If you would like to host Homer in a subfolder, (ex: *http://my-domain/**homer***), set this to the subfolder path (ex `/homer`).
caf5fae8 94
38c1aa3a
C
95* **`PORT`** (default: `8080`)
96If you would like to change internal port of Homer from default `8080` to your port choice.
97
98
b5bf9774 99#### With docker-compose
caf5fae8 100
b5bf9774 101A [`docker-compose.yml`](docker-compose.yml) file is available as an example. It must be edited to match your needs. You probably want to adjust the port mapping and volume binding (equivalent to `-p` and `-v` arguments).
e4537f13 102
049f8522 103Then launch the container:
e4537f13 104
105```sh
049f8522 106cd /path/to/docker-compose.yml/
e4537f13 107docker-compose up -d
108```
109
e1470a8c 110### Using the release tarball (prebuilt, ready to use)
b9c5fcf0 111
1d3287dc 112Download and extract the latest release (`homer.zip`) from the [release page](https://github.com/bastienwirtz/homer/releases), rename the `assets/config.yml.dist` file to `assets/config.yml`, and put it behind a web server.
86f4680a 113
b9c5fcf0 114```sh
e1470a8c
BW
115wget https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip
116unzip homer.zip
117cd homer
b102c9b2 118cp assets/config.yml.dist assets/config.yml
e1470a8c 119npx serve # or python -m http.server 8010 or apache, nginx ...
b9c5fcf0
BW
120```
121
e1470a8c 122### Build manually
b9c5fcf0
BW
123
124```sh
125# Using yarn (recommended)
126yarn install
e1470a8c 127yarn build
b9c5fcf0
BW
128
129# **OR** Using npm
130npm install
e1470a8c 131npm run build
b9c5fcf0
BW
132```
133
e1470a8c 134Then your dashboard is ready to use in the `/dist` directory.