From 5d4a379e8dbc2605d18a173db64619926e14ab10 Mon Sep 17 00:00:00 2001 From: Telokis <6382729+Telokis@users.noreply.github.com> Date: Wed, 7 Aug 2024 01:06:54 +0200 Subject: [PATCH] Improve homepage service template --- templates/compose/homepage.yaml | 112 +++++++++++++++++++++++++++++++- 1 file changed, 109 insertions(+), 3 deletions(-) diff --git a/templates/compose/homepage.yaml b/templates/compose/homepage.yaml index c32d02f9a..7f3d9eaaa 100644 --- a/templates/compose/homepage.yaml +++ b/templates/compose/homepage.yaml @@ -11,6 +11,112 @@ services: - SERVICE_FQDN_HOMEPAGE_3000 - HOMEPAGE_VAR_BASE=${SERVICE_FQDN_HOMEPAGE} volumes: - - homepage-config:/app/config - - homepage-images:/app/public/images - - /var/run/docker.sock:/var/run/docker.sock + - /var/run/docker.sock:/var/run/docker.sock:ro + - ./images:/app/public/images + + - type: bind + source: ./config/bookmarks.yaml + target: /app/config/bookmarks.yaml + content: | + --- + # For configuration options and examples, please see: + # https://gethomepage.dev/latest/configs/bookmarks + + - Developer: + - Github: + - abbr: GH + href: https://github.com/ + + - Social: + - Reddit: + - abbr: RE + href: https://reddit.com/ + + - Entertainment: + - YouTube: + - abbr: YT + href: https://youtube.com/ + + - type: bind + source: ./config/custom.css + target: /app/config/custom.css + content: "" + + - type: bind + source: ./config/custom.js + target: /app/config/custom.js + content: "" + + - type: bind + source: ./config/docker.yaml + target: /app/config/docker.yaml + content: | + --- + # For configuration options and examples, please see: + # https://gethomepage.dev/latest/configs/docker/ + + # my-docker: + # host: 127.0.0.1 + # port: 2375 + + # my-docker: + # socket: /var/run/docker.sock + + - type: bind + source: ./config/kubernetes.yaml + target: /app/config/kubernetes.yaml + content: | + --- + # sample kubernetes config + + - type: bind + source: ./config/services.yaml + target: /app/config/services.yaml + content: | + --- + # For configuration options and examples, please see: + # https://gethomepage.dev/latest/configs/services + + - My First Group: + - My First Service: + href: http://localhost/ + description: Homepage is awesome + + - My Second Group: + - My Second Service: + href: http://localhost/ + description: Homepage is the best + + - My Third Group: + - My Third Service: + href: http://localhost/ + description: Homepage is 😎 + + - type: bind + source: ./config/settings.yaml + target: /app/config/settings.yaml + content: | + --- + # For configuration options and examples, please see: + # https://gethomepage.dev/latest/configs/settings + + providers: + openweathermap: openweathermapapikey + weatherapi: weatherapiapikey + + - type: bind + source: ./config/widgets.yaml + target: /app/config/widgets.yaml + content: | + --- + # For configuration options and examples, please see: + # https://gethomepage.dev/latest/configs/service-widgets + + - resources: + cpu: true + memory: true + disk: / + + - search: + provider: duckduckgo + target: _blank