aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md29
-rw-r--r--docker-compose.yml14
-rw-r--r--src/App.vue2
3 files changed, 44 insertions, 1 deletions
diff --git a/README.md b/README.md
index 33a15b1..b965f9b 100644
--- a/README.md
+++ b/README.md
@@ -70,12 +70,41 @@ See [documentation](docs/configuration.md) for information about the configurati
70 70
71### Using docker 71### Using docker
72 72
73To launch container :
74
73```sh 75```sh
74docker run -p 8080:8080 -v /your/local/assets/:/www/assets b4bz/homer:latest 76docker run -p 8080:8080 -v /your/local/assets/:/www/assets b4bz/homer:latest
75``` 77```
76 78
77Default 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" [...]`). 79Default 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" [...]`).
78 80
81### Using docker-compose
82
83The `docker-compose.yml` file must be edited to match your needs.
84Set the port and volume (equivalent to -p and -v arguments) :
85
86```yaml
87volumes:
88 - /your/local/assets/:/www/assets
89ports:
90 - 8080:8080
91```
92
93To launch container :
94
95```sh
96cd /path/to/docker-compose.yml
97docker-compose up -d
98```
99
100Default 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` :
101
102```yaml
103environment:
104- UID=1000
105- GID=1000
106```
107
79### Using the release tarball (prebuilt, ready to use) 108### Using the release tarball (prebuilt, ready to use)
80 109
81Download and extract the latest 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. 110Download and extract the latest 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.
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..85e9156
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,14 @@
1---
2version: "2"
3services:
4 homer:
5 image: b4bz/homer
6 container_name: homer
7 volumes:
8 - /your/local/assets/:/www/assets
9 ports:
10 - 8080:8080
11 #environment:
12 # - UID=1000
13 # - GID=1000
14 restart: unless-stopped
diff --git a/src/App.vue b/src/App.vue
index d7054a7..5f52c8f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -14,7 +14,7 @@
14 <div v-cloak class="container"> 14 <div v-cloak class="container">
15 <div class="logo"> 15 <div class="logo">
16 <img v-if="config.logo" :src="config.logo" alt="dashboard logo" /> 16 <img v-if="config.logo" :src="config.logo" alt="dashboard logo" />
17 <i v-if="config.icon" :class="['fa-fw', config.icon]"></i> 17 <i v-if="config.icon" :class="config.icon"></i>
18 </div> 18 </div>
19 <div class="dashboard-title"> 19 <div class="dashboard-title">
20 <span class="headline">{{ config.subtitle }}</span> 20 <span class="headline">{{ config.subtitle }}</span>