]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - README.md
Release 24.04.1
[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 12</h4>
4c9212c9
BW
13<p align="center">
14 <a href="https://www.buymeacoffee.com/bastien" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-yellow.png" alt="Buy Me A Coffee" height="41" width="174"></a>
15<p>
a9aed9f9 16<p align="center">
1d3287dc
BW
17 <strong>
18 <a href="https://homer-demo.netlify.app">Demo</a>
19
20 <a href="https://gitter.im/homer-dashboard/community">Chat</a>
21
22 <a href="#getting-started">Getting started</a>
23 </strong>
a9aed9f9
BW
24</p>
25<p align="center">
1d3287dc
BW
26 <a href="https://opensource.org/licenses/Apache-2.0"><img
27 alt="License: Apache 2"
28 src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a>
a9aed9f9 29 <a href="https://gitter.im/homer-dashboard/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img
1d3287dc
BW
30 alt="Gitter chat"
31 src="https://badges.gitter.im/homer-dashboard/community.svg"></a>
a9aed9f9 32 <a href="https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip"><img
1d3287dc
BW
33 alt="Download homer static build"
34 src="https://img.shields.io/badge/Download-homer.zip-orange"></a>
e9faffbb
SO
35 <a href="https://twitter.com/acdlite/status/974390255393505280"><img
36 alt="speed-blazing"
37 src="https://img.shields.io/badge/speed-blazing%20%F0%9F%94%A5-red"></a>
1d3287dc
BW
38 <a href="https://github.com/awesome-selfhosted/awesome-selfhosted"><img
39 alt="Awesome"
40 src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg"></a>
a9aed9f9
BW
41</p>
42
43<p align="center">
1d3287dc 44 <img src="https://raw.github.com/bastienwirtz/homer/main/docs/screenshot.png" width="100%">
a9aed9f9 45</p>
a4de4a3a 46
e1470a8c 47## Table of Contents
1d3287dc 48
e1470a8c
BW
49- [Features](#features)
50- [Getting started](#getting-started)
1bc75494 51- [Configuration](docs/configuration.md)
92d899bd 52- [Custom services](docs/customservices.md)
1bc75494 53- [Tips & tricks](docs/tips-and-tricks.md)
2662b170 54- [Development](docs/development.md)
7129af3b 55- [Troubleshooting](docs/troubleshooting.md)
a4de4a3a 56
e1470a8c 57## Features
1d3287dc 58
e1470a8c
BW
59- [yaml](http://yaml.org/) file configuration
60- Installable (pwa)
61- Search
86f4680a 62- Grouping
e1470a8c 63- Theme customization
26dbed93 64- Offline health check
e1470a8c
BW
65- keyboard shortcuts:
66 - `/` Start searching.
67 - `Escape` Stop searching.
68 - `Enter` Open the first matching result (respects the bookmark's `_target` property).
69 - `Alt`/`Option` + `Enter` Open the first matching result in a new tab.
09763dbf 70
e1470a8c 71## Getting started
22555b55 72
b5bf9774 73Homer 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 74
b5bf9774 75It's meant to be served by an HTTP server, **it will not work if you open the index.html directly over file:// protocol**.
1bc75494 76
b79e6ed1
BW
77### Using docker
78
79```sh
9ba0d54e
BW
80docker run -d \
81 -p 8080:8080 \
82 -v </your/local/assets/>:/www/assets \
83 --restart=always \
84 b4bz/homer:latest
b79e6ed1
BW
85```
86
b5bf9774
BW
87The 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.
88
89**Environment variables:**
049f8522
BW
90
91* **`INIT_ASSETS`** (default: `1`)
766efb1a 92Install example configuration file & assets (favicons, ...) to help you get started.
897f67f0 93
049f8522
BW
94* **`SUBFOLDER`** (default: `null`)
95If you would like to host Homer in a subfolder, (ex: *http://my-domain/**homer***), set this to the subfolder path (ex `/homer`).
caf5fae8 96
38c1aa3a
C
97* **`PORT`** (default: `8080`)
98If you would like to change internal port of Homer from default `8080` to your port choice.
99
c8470d1e 100* **`IPV6_DISABLE`** (default: 0)
101Set to `1` to disable listening on IPv6.
38c1aa3a 102
b5bf9774 103#### With docker-compose
caf5fae8 104
b5bf9774 105A [`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 106
049f8522 107Then launch the container:
e4537f13 108
109```sh
049f8522 110cd /path/to/docker-compose.yml/
e4537f13 111docker-compose up -d
112```
113
e1470a8c 114### Using the release tarball (prebuilt, ready to use)
b9c5fcf0 115
1d3287dc 116Download 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 117
b9c5fcf0 118```sh
e1470a8c
BW
119wget https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip
120unzip homer.zip
121cd homer
b102c9b2 122cp assets/config.yml.dist assets/config.yml
e1470a8c 123npx serve # or python -m http.server 8010 or apache, nginx ...
b9c5fcf0
BW
124```
125
b7cd8f94
BW
126### Using Helm
127
128Thanks to [@djjudas21](https://github.com/djjudas21) [charts](https://github.com/djjudas21/charts/tree/main/charts/homer):
129
130```sh
131helm repo add djjudas21 https://djjudas21.github.io/charts/
132helm repo update djjudas21
133
134# install with all defaults
135helm install homer djjudas21/homer
136
137# install with customisations
138wget https://raw.githubusercontent.com/djjudas21/charts/main/charts/homer/values.yaml
139# edit values.yaml
140helm install homer djjudas21/homer -f values.yaml
141```
142
e1470a8c 143### Build manually
b9c5fcf0
BW
144
145```sh
0740fb31
BW
146pnpm install
147pnpm build
b9c5fcf0
BW
148```
149
e1470a8c 150Then your dashboard is ready to use in the `/dist` directory.