Skip to content

Commit

Permalink
[IMP] Expose ports for traefik < 3
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa committed Jul 26, 2024
1 parent ac5221c commit f25fc7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prod.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ services:
- .docker/db-creation.env
restart: unless-stopped
{%- if postgres_exposed %}
{%- if traefik_version == 3 -%}
networks:
default:
inverseproxy_shared:
Expand All @@ -101,6 +102,10 @@ services:
postgres_exposed_port,
project_name,
) }}
{%- else %}
ports:
- "{{ postgres_exposed_port }}:5432"
{%- endif %}
{%- endif %}
{%- endif %}

Expand Down

0 comments on commit f25fc7b

Please sign in to comment.