From 5c5fc296ed9ad5796a867ef65dbb51aa1ad2b036 Mon Sep 17 00:00:00 2001 From: Florent Torregrosa Date: Tue, 12 Dec 2023 10:17:50 +0100 Subject: [PATCH] Fix #21: Fix extra docker-compose to always have correct hostname. --- install.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.yaml b/install.yaml index 3bc17c1..415b929 100644 --- a/install.yaml +++ b/install.yaml @@ -29,7 +29,7 @@ post_install_actions: {{ $project_tld := "ddev.site" }} {{ if .DdevGlobalConfig.project_tld }}{{ $project_tld = .DdevGlobalConfig.project_tld }}{{ end }} {{ if .DdevProjectConfig.project_tld }}{{ $project_tld = .DdevProjectConfig.project_tld }} {{ end }} - {{ $novarnish_hostnames := print "novarnish." .DdevProjectConfig.name "." $project_tld }} + {{ $novarnish_hostnames := print "novarnish.$DDEV_HOSTNAME" }} {{ $sep := print "." $project_tld ",novarnish." }} {{ if .DdevProjectConfig.additional_hostnames }} {{ $novarnish_hostnames = print $novarnish_hostnames "," "novarnish." (.DdevProjectConfig.additional_hostnames | join $sep) "." $project_tld }}