Skip to content

Commit

Permalink
[IMP] Use unique db service name for project, version and environment
Browse files Browse the repository at this point in the history
  • Loading branch information
josep-tecnativa committed Jan 28, 2025
1 parent 772d808 commit 378780f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions prod.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
SMTP_SERVER: smtplocal
{%- endif %}
depends_on:
- db
- {{ _key }}-db
{%- if smtp_relay_host %}
- smtp
{%- endif %}
Expand Down Expand Up @@ -83,7 +83,7 @@ services:
{%- endif %}

{% if postgres_version -%}
db:
{{ _key }}-db:
extends:
file: common.yaml
service: db
Expand Down Expand Up @@ -137,7 +137,7 @@ services:
- .docker/db-access.env
restart: unless-stopped
depends_on:
- db
- {{ _key }}-db
{%- if smtp_relay_host %}
- smtp
{%- endif %}
Expand Down
4 changes: 2 additions & 2 deletions test.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
hostname: {{ macros.first_main_domain(domains_test)|tojson }}
{%- endif %}
depends_on:
- db
- {{ _key }}-db
- smtp
networks:
default:
Expand Down Expand Up @@ -57,7 +57,7 @@ services:
- --max-cron-threads=1

{% if postgres_version -%}
db:
{{ _key }}-db:
extends:
file: common.yaml
service: db
Expand Down

0 comments on commit 378780f

Please sign in to comment.