Skip to content

Commit

Permalink
[IMP] agregar configuracion de traefik cuando se exponga la BD
Browse files Browse the repository at this point in the history
- abrir puerto
- agregar entrypoint
  • Loading branch information
celm1990 committed Oct 20, 2024
1 parent ba3a133 commit 88ab068
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions inverseproxy/traefik.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 88ab068

Please sign in to comment.