From 421c0eb7d242b2982735b05e5ed108e9169a6c62 Mon Sep 17 00:00:00 2001 From: mathieu Date: Wed, 3 Jul 2024 12:39:03 +0200 Subject: [PATCH] chore: addhomarr adguard --- adguard/docker-compose.yml | 21 +++++++++++++++++++++ homarr/docker-compose.yml | 21 +++++++++++++++++++++ traefik/rules.yaml | 12 +++++++++++- 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 adguard/docker-compose.yml create mode 100644 homarr/docker-compose.yml diff --git a/adguard/docker-compose.yml b/adguard/docker-compose.yml new file mode 100644 index 0000000..8c029c0 --- /dev/null +++ b/adguard/docker-compose.yml @@ -0,0 +1,21 @@ + +version: "3" +services: + adguardhome: + image: adguard/adguardhome + container_name: adguardhome + ports: + - 53:53/tcp + - 53:53/udp + - 853:853/tcp + - 3999:3000/tcp + - 8088:80/tcp + + volumes: + - adguardhome-workdir:/opt/adguardhome/work + - adguardhome-confdir:/opt/adguardhome/conf + restart: unless-stopped + +volumes: + adguardhome-confdir: {} + adguardhome-workdir: {} \ No newline at end of file diff --git a/homarr/docker-compose.yml b/homarr/docker-compose.yml new file mode 100644 index 0000000..8e5932d --- /dev/null +++ b/homarr/docker-compose.yml @@ -0,0 +1,21 @@ +version: '3' +#---------------------------------------------------------------------# +# Homarr - A simple, yet powerful dashboard for your server. # +#---------------------------------------------------------------------# +services: + homarr: + container_name: homarr + image: ghcr.io/ajnart/homarr:latest + restart: unless-stopped + volumes: + - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration + - homarr-storage-configs:/app/data/configs + - homarr-storage-icons:/app/public/icons + - homarr-storage-data:/data + ports: + - '8087:7575' + +volumes: + homarr-storage-configs: {} + homarr-storage-icons: {} + homarr-storage-data: {} \ No newline at end of file diff --git a/traefik/rules.yaml b/traefik/rules.yaml index dd3bf54..7f340cc 100644 --- a/traefik/rules.yaml +++ b/traefik/rules.yaml @@ -38,7 +38,7 @@ http: certResolver: myresolver router-homepage: rule: "Host(`home.huguette.ovh`)" - service: "service-homepage" + service: "service-homarr" tls: certResolver: myresolver router-joplin: @@ -148,6 +148,16 @@ http: passHostHeader: true servers: - url: "http://192.168.1.100:8086" + service-homarr: + loadBalancer: + passHostHeader: true + servers: + - url: "http://192.168.1.100:8087" + service-adguard: + loadBalancer: + passHostHeader: true + servers: + - url: "http://192.168.1.100:8088" middlewares: replacepathregex-nas: