From d51a9802b030a313b9cd66d59e46a648eed93a27 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 24 Sep 2023 20:07:15 +0200 Subject: [PATCH] Use private network for home_assistant and n8n --- roles/home_assistant/templates/docker-compose.yml.j2 | 1 + roles/n8n/templates/docker-compose.yml.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/home_assistant/templates/docker-compose.yml.j2 b/roles/home_assistant/templates/docker-compose.yml.j2 index 9a3ac01..58f18c1 100644 --- a/roles/home_assistant/templates/docker-compose.yml.j2 +++ b/roles/home_assistant/templates/docker-compose.yml.j2 @@ -20,4 +20,5 @@ services: - "traefik.http.routers.homeassistant-secure.tls=true" - "traefik.http.routers.homeassistant-secure.tls.certresolver=sslResolver" # - "traefik.http.routers.homeassistant-secure.service=homeassistant" + - "traefik.http.routers.homeassistant-secure.middlewares=private-network@file" - "traefik.http.services.homeassistant.loadbalancer.server.port=8123" diff --git a/roles/n8n/templates/docker-compose.yml.j2 b/roles/n8n/templates/docker-compose.yml.j2 index b2e2d32..356651e 100644 --- a/roles/n8n/templates/docker-compose.yml.j2 +++ b/roles/n8n/templates/docker-compose.yml.j2 @@ -31,6 +31,7 @@ services: - "traefik.http.routers.n8n-secure.tls.certresolver=sslResolver" # - "traefik.http.routers.whoami-secure.service=whoami" # - "traefik.http.services.whoami.loadbalancer.server.port=9002" + - "traefik.http.routers.n8n-secure.middlewares=private-network@file" - "traefik.docker.network=proxy" environment: - DB_TYPE=postgresdb