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 Aug 6, 2024
1 parent 7a89f92 commit d962bbb
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 d962bbb

Please sign in to comment.