]>
Commit | Line | Data |
---|---|---|
a9aed9f9 BW |
1 | <h1 align="center"> |
2 | <img | |
3 | width="180" | |
4 | alt="Homer's donut" | |
e7594585 | 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"> | |
86f4680a | 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"> | |
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> | |
22 | </p> | |
23 | <p align="center"> | |
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> | |
27 | <a href="https://gitter.im/homer-dashboard/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img | |
28 | alt="Gitter chat" | |
29 | src="https://badges.gitter.im/homer-dashboard/community.svg"></a> | |
30 | <a href="https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip"><img | |
31 | alt="Download homer static build" | |
32 | src="https://img.shields.io/badge/Download-homer.zip-orange"></a> | |
33 | <a href="https://github.com/awesome-selfhosted/awesome-selfhosted"><img | |
34 | alt="Awesome" | |
35 | src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg"></a> | |
36 | </p> | |
37 | ||
38 | <p align="center"> | |
d1b29caa | 39 | <img src="https://raw.github.com/bastienwirtz/homer/main/docs/screenshot.png" width="100%"> |
a9aed9f9 | 40 | </p> |
a4de4a3a | 41 | |
e1470a8c BW |
42 | ## Table of Contents |
43 | - [Features](#features) | |
44 | - [Getting started](#getting-started) | |
1bc75494 BW |
45 | - [Configuration](docs/configuration.md) |
46 | - [Tips & tricks](docs/tips-and-tricks.md) | |
86f4680a | 47 | - [Roadmap](#roadmap) |
2662b170 | 48 | - [Development](docs/development.md) |
1bc75494 | 49 | |
a4de4a3a | 50 | |
e1470a8c BW |
51 | ## Features |
52 | - [yaml](http://yaml.org/) file configuration | |
53 | - Installable (pwa) | |
54 | - Search | |
86f4680a | 55 | - Grouping |
e1470a8c BW |
56 | - Theme customization |
57 | - Offline heathcheck | |
58 | - keyboard shortcuts: | |
59 | - `/` Start searching. | |
60 | - `Escape` Stop searching. | |
61 | - `Enter` Open the first matching result (respects the bookmark's `_target` property). | |
62 | - `Alt`/`Option` + `Enter` Open the first matching result in a new tab. | |
09763dbf | 63 | |
09763dbf | 64 | |
e1470a8c | 65 | ## Getting started |
22555b55 | 66 | |
e1470a8c | 67 | Homer is a full static html/js dashboard, generated from the source in `/src` using webpack. It's meant to be served by an HTTP server, **it will not work if you open dist/index.html directly over file:// protocol**. |
b79e6ed1 | 68 | |
b102c9b2 | 69 | See [documentation](docs/configuration.md) for information about the configuration (`assets/config.yml`) options. |
1bc75494 | 70 | |
b79e6ed1 BW |
71 | ### Using docker |
72 | ||
86f4680a | 73 | To launch container: |
e4537f13 | 74 | |
b79e6ed1 | 75 | ```sh |
b102c9b2 | 76 | docker run -p 8080:8080 -v /your/local/assets/:/www/assets b4bz/homer:latest |
b79e6ed1 BW |
77 | ``` |
78 | ||
b102c9b2 | 79 | Default assets will be automatically installed in the `/www/assets` directory. Use `UID` and/or `GID` env var to change the assets owner (`docker run -e "UID=1000" -e "GID=1000" [...]`). |
897f67f0 | 80 | |
e4537f13 | 81 | ### Using docker-compose |
82 | ||
83 | The `docker-compose.yml` file must be edited to match your needs. | |
86f4680a | 84 | Set the port and volume (equivalent to `-p` and `-v` arguments): |
e4537f13 | 85 | |
86 | ```yaml | |
87 | volumes: | |
88 | - /your/local/assets/:/www/assets | |
89 | ports: | |
90 | - 8080:8080 | |
91 | ``` | |
92 | ||
86f4680a | 93 | To launch container: |
e4537f13 | 94 | |
95 | ```sh | |
96 | cd /path/to/docker-compose.yml | |
97 | docker-compose up -d | |
98 | ``` | |
99 | ||
86f4680a | 100 | Default assets will be automatically installed in the `/www/assets` directory. Use `UID` and/or `GID` env var to change the assets owner, also in `docker-compose.yml`: |
e4537f13 | 101 | |
102 | ```yaml | |
103 | environment: | |
86f4680a | 104 | - UID=1000 |
105 | - GID=1000 | |
e4537f13 | 106 | ``` |
107 | ||
e1470a8c | 108 | ### Using the release tarball (prebuilt, ready to use) |
b9c5fcf0 | 109 | |
86f4680a | 110 | Download 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 webserver. |
111 | ||
b9c5fcf0 | 112 | ```sh |
e1470a8c BW |
113 | wget https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip |
114 | unzip homer.zip | |
115 | cd homer | |
b102c9b2 | 116 | cp assets/config.yml.dist assets/config.yml |
e1470a8c | 117 | npx serve # or python -m http.server 8010 or apache, nginx ... |
b9c5fcf0 BW |
118 | ``` |
119 | ||
e1470a8c | 120 | ### Build manually |
b9c5fcf0 BW |
121 | |
122 | ```sh | |
123 | # Using yarn (recommended) | |
124 | yarn install | |
e1470a8c | 125 | yarn build |
b9c5fcf0 BW |
126 | |
127 | # **OR** Using npm | |
128 | npm install | |
e1470a8c | 129 | npm run build |
b9c5fcf0 BW |
130 | ``` |
131 | ||
e1470a8c | 132 | Then your dashboard is ready to use in the `/dist` directory. |
e41196e7 | 133 | |
e1470a8c BW |
134 | |
135 | ## Roadmap | |
136 | ||
1bc75494 | 137 | - [ ] Add new themes. |
e1470a8c | 138 | - [ ] Add support for custom service card (add custom feature to some service / app link) |