Commit 8b2c66d 1 parent d625427 commit 8b2c66d Copy full SHA for 8b2c66d
File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ services:
30
30
{% - if smtp_relay_host %}
31
31
SMTP_SERVER: smtplocal
32
32
{% - endif %}
33
+ PGHOST: {{ _key }}-db
33
34
depends_on:
34
35
- db
35
36
{% - if smtp_relay_host %}
@@ -87,13 +88,17 @@ services:
87
88
extends:
88
89
file: common.yaml
89
90
service: db
91
+ environment:
92
+ - DB_HOST={{ _key }}-db
90
93
env_file:
91
94
- .docker/db-creation.env
92
95
restart: unless-stopped
93
96
{% - if postgres_exposed %}
94
97
{% - if traefik_version == 3 %}
95
98
networks:
96
99
default:
100
+ aliases:
101
+ - "{{ _key }}-db"
97
102
inverseproxy_shared:
98
103
labels:
99
104
traefik.enable: "true"
@@ -109,6 +114,11 @@ services:
109
114
ports:
110
115
- "{{ postgres_exposed_port }}:5432"
111
116
{% - endif %}
117
+ {% - else %}
118
+ networks:
119
+ default:
120
+ aliases:
121
+ - "{{ _key }}-db"
112
122
{% - endif %}
113
123
{% - endif %}
114
124
You can’t perform that action at this time.
0 commit comments