aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/getting_started.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/getting_started.md')
-rw-r--r--docs/getting_started.md70
1 files changed, 70 insertions, 0 deletions
diff --git a/docs/getting_started.md b/docs/getting_started.md
new file mode 100644
index 0000000..2a123e2
--- /dev/null
+++ b/docs/getting_started.md
@@ -0,0 +1,70 @@
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.