From f7b5d1b7d577f674fb494442556854190d7ce49a Mon Sep 17 00:00:00 2001 From: mathieu Date: Sat, 25 May 2024 23:48:53 +0200 Subject: [PATCH] homepage --- homepage/conf/bookmarks.yaml | 0 homepage/conf/docker.yaml | 2 ++ homepage/conf/services.yaml | 17 +++++++++++++++++ homepage/conf/settings.yaml | 17 +++++++++++++++++ homepage/deploy.sh | 2 ++ homepage/docker-compose.yml | 10 ++++++++++ traefik/rules.yaml | 11 +++++++++++ 7 files changed, 59 insertions(+) create mode 100644 homepage/conf/bookmarks.yaml create mode 100644 homepage/conf/docker.yaml create mode 100644 homepage/conf/services.yaml create mode 100644 homepage/conf/settings.yaml create mode 100644 homepage/deploy.sh create mode 100644 homepage/docker-compose.yml diff --git a/homepage/conf/bookmarks.yaml b/homepage/conf/bookmarks.yaml new file mode 100644 index 0000000..e69de29 diff --git a/homepage/conf/docker.yaml b/homepage/conf/docker.yaml new file mode 100644 index 0000000..98838a8 --- /dev/null +++ b/homepage/conf/docker.yaml @@ -0,0 +1,2 @@ +my-docker: + socket: /var/run/docker.sock diff --git a/homepage/conf/services.yaml b/homepage/conf/services.yaml new file mode 100644 index 0000000..86304b0 --- /dev/null +++ b/homepage/conf/services.yaml @@ -0,0 +1,17 @@ +- Group A: + - Sonarr: + icon: sonarr.png + href: http://sonarr.host/ + description: Series management + +- Group B: + - Radarr: + icon: radarr.png + href: http://radarr.host/ + description: Movie management + +- Group C: + - Service: + icon: mdi-flask-outline + href: http://service.host/ + description: My cool service diff --git a/homepage/conf/settings.yaml b/homepage/conf/settings.yaml new file mode 100644 index 0000000..b98d56a --- /dev/null +++ b/homepage/conf/settings.yaml @@ -0,0 +1,17 @@ +title: My Awesome Homepage + +startUrl: https://huguettes.freeboxos.fr/home + +layout: + Media: + style: row + columns: 4 + +layout: + - Auto-Discovered1: + - Configured1: + - Configured2: + - Auto-Discovered2: + - Configured3: + style: row + columns: 3 diff --git a/homepage/deploy.sh b/homepage/deploy.sh new file mode 100644 index 0000000..2a510d7 --- /dev/null +++ b/homepage/deploy.sh @@ -0,0 +1,2 @@ +cp conf/ /volume1/docker/homepage/conf/ +docker-compose up -d --force-recreate \ No newline at end of file diff --git a/homepage/docker-compose.yml b/homepage/docker-compose.yml new file mode 100644 index 0000000..b37070d --- /dev/null +++ b/homepage/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.3" +services: + homepage: + image: ghcr.io/gethomepage/homepage:latest + container_name: homepage + ports: + - 8083:3000 + volumes: + - /volume1/docker/homepage/conf:/app/config # Make sure your local config directory exists + - /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations \ No newline at end of file diff --git a/traefik/rules.yaml b/traefik/rules.yaml index c852d62..757ef27 100644 --- a/traefik/rules.yaml +++ b/traefik/rules.yaml @@ -24,6 +24,12 @@ http: tls: {} middlewares: - replacepathregex + router-homepage: + rule: "Host(`huguettes.freeboxos.fr`) && Path(`/home`)" + service: "service-homepage" + tls: {} + middlewares: + - replacepathregex services: service-dsm: @@ -46,6 +52,11 @@ http: passHostHeader: true servers: - url: "http://192.168.1.100:8082" + service-homepage: + loadBalancer: + passHostHeader: true + servers: + - url: "http://192.168.1.100:8083" middlewares: