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