]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - docs/getting_started.md
Cleaned up configuration page a bit
[github/bastienwirtz/homer.git] / docs / getting_started.md
CommitLineData
82858235
ES
1Homer 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**.
2
3See [documentation](docs/configuration.md) for information about the configuration (`assets/config.yml`) options.
4
5## Using docker
6
7To launch container:
8
9```sh
10docker run -d \
11 -p 8080:8080 \
12 -v </your/local/assets/>:/www/assets \
13 --restart=always \
14 b4bz/homer:latest
15```
16
17Default 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" [...]`).
18
19## Using docker-compose
20
21The `docker-compose.yml` file must be edited to match your needs.
22Set the port and volume (equivalent to `-p` and `-v` arguments):
23
24```yaml
25volumes:
26 - /your/local/assets/:/www/assets
27ports:
28 - 8080:8080
29```
30
31To launch container:
32
33```sh
34cd /path/to/docker-compose.yml
35docker-compose up -d
36```
37
38Default 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`:
39
40```yaml
41environment:
42 - UID=1000
43 - GID=1000
44```
45
46## Using the release tarball (prebuilt, ready to use)
47
48Download 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.
49
50```sh
51wget https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip
52unzip homer.zip
53cd homer
54cp assets/config.yml.dist assets/config.yml
55npx serve # or python -m http.server 8010 or apache, nginx ...
56```
57
58## Build manually
59
60```sh
61# Using yarn (recommended)
62yarn install
63yarn build
64
65# **OR** Using npm
66npm install
67npm run build
68```
69
70Then your dashboard is ready to use in the `/dist` directory.