]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Merge pull request #118 from vosdev/patch-1
authorBastien Wirtz <bastien.wirtz@gmail.com>
Sat, 29 Aug 2020 06:36:41 +0000 (23:36 -0700)
committerGitHub <noreply@github.com>
Sat, 29 Aug 2020 06:36:41 +0000 (23:36 -0700)
Add chrome extension for a custom new tab page

README.md
docker-compose.yml [new file with mode: 0644]
src/App.vue
src/components/Navbar.vue

index 33a15b19f1af8a23c98719b4bf03f38456fab254..b965f9b58374b083393115e04ea286c1ba90eb48 100644 (file)
--- a/README.md
+++ b/README.md
@@ -70,12 +70,41 @@ See [documentation](docs/configuration.md) for information about the configurati
 
 ### Using docker
 
+To launch container :
+
 ```sh
 docker run -p 8080:8080 -v /your/local/assets/:/www/assets b4bz/homer:latest
 ```
 
 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" [...]`).
 
+### Using docker-compose
+
+The `docker-compose.yml` file must be edited to match your needs.
+Set the port and volume (equivalent to -p and -v arguments) :
+
+```yaml
+volumes:
+  - /your/local/assets/:/www/assets
+ports:
+  - 8080:8080
+```
+
+To launch container :
+
+```sh
+cd /path/to/docker-compose.yml
+docker-compose up -d
+```
+
+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` :
+
+```yaml
+environment:
+- UID=1000
+- GID=1000
+```
+
 ### Using the release tarball (prebuilt, ready to use)
 
 Download 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 (file)
index 0000000..85e9156
--- /dev/null
@@ -0,0 +1,14 @@
+---
+version: "2"
+services:
+  homer:
+    image: b4bz/homer
+    container_name: homer
+    volumes:
+      - /your/local/assets/:/www/assets
+    ports:
+      - 8080:8080
+    #environment:
+    #  - UID=1000
+    #  - GID=1000
+    restart: unless-stopped
index d7054a7f453c8e0bd03eb0f64975482c44722d44..5f52c8f2fd40e017937e9b8b837cebcf2bfa05f4 100644 (file)
@@ -14,7 +14,7 @@
         <div v-cloak class="container">
           <div class="logo">
             <img v-if="config.logo" :src="config.logo" alt="dashboard logo" />
-            <i v-if="config.icon" :class="['fa-fw', config.icon]"></i>
+            <i v-if="config.icon" :class="config.icon"></i>
           </div>
           <div class="dashboard-title">
             <span class="headline">{{ config.subtitle }}</span>
index c688a3ab7528c6b79d67cfb9b3a652d99d1eaa83..ae8416688bcb737fb4c5eb539005ea7531060c34 100644 (file)
@@ -28,8 +28,7 @@
             >
               <i
                 v-if="link.icon"
-                style="margin-right: 6px;"
-                :class="['fa-fw', link.icon]"
+                :class="['fa-fw', link.icon, { 'mr-2': link.name }]"
               ></i>
               {{ link.name }}
             </a>