From 88ab068307a98e4475ac8969cdca51d8e2a66254 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Sun, 20 Oct 2024 16:31:32 -0500 Subject: [PATCH] [IMP] agregar configuracion de traefik cuando se exponga la BD - abrir puerto - agregar entrypoint --- inverseproxy/traefik.yaml.jinja | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inverseproxy/traefik.yaml.jinja b/inverseproxy/traefik.yaml.jinja index 9a06908f..92632e3a 100644 --- a/inverseproxy/traefik.yaml.jinja +++ b/inverseproxy/traefik.yaml.jinja @@ -12,6 +12,9 @@ services: ports: - 80:80 - 443:443 + {%- if postgres_exposed and postgres_exposed_port and traefik_version == 3 %} + - "{{ postgres_exposed_port }}:5432" + {%- endif %} volumes: - acme:/etc/traefik/acme:rw,Z depends_on: @@ -37,6 +40,9 @@ services: - "--certificatesresolvers.letsencrypt.acme.email={{ ssl_email }}" - "--certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme.json" - "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=web-insecure" + {%- if postgres_exposed and postgres_exposed_port and traefik_version == 3 %} + - "--entrypoints.postgres-entrypoint.address=:{{ postgres_exposed_port }}" + {%- endif %} {%- if enable_traefik_dashboard == true %} - "--api.dashboard=true" labels: