Skip to content

Commit 4cdba74

Browse files
[IMP] Add network alias to test.yml file
1 parent 61ccb4c commit 4cdba74

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test.yaml.jinja

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ services:
2424
SMTP_SERVER: smtplocal
2525
# Just in case you use queue_job
2626
ODOO_QUEUE_JOB_CHANNELS: "root:1"
27+
PGHOST: {{ _key }}-db
2728
restart: unless-stopped
2829
{%- if domains_test %}
2930
hostname: {{ macros.first_main_domain(domains_test)|tojson }}
@@ -61,8 +62,14 @@ services:
6162
extends:
6263
file: common.yaml
6364
service: db
65+
environment:
66+
- DB_HOST={{ _key }}-db
6467
env_file:
6568
- .docker/db-creation.env
69+
networks:
70+
default:
71+
aliases:
72+
- "{{ _key }}-db"
6673
restart: unless-stopped
6774
{%- endif %}
6875

0 commit comments

Comments
 (0)