File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,5 @@ COPY *.conf /etc/nginx/conf.d/
17
17
18
18
# override nginx-proxy templating
19
19
COPY nginx.tmpl Procfile reload-nginx /app/
20
+
21
+ ENV DOMAIN_TLD docker
Original file line number Diff line number Diff line change 1
1
{{ $CurrentContainer := where $ "Hostname" .Env.HOSTNAME | first }}
2
+ {{ $TLD := .Env.DOMAIN_TLD }}
2
3
3
4
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the
4
5
# scheme used to connect to this server
@@ -81,7 +82,7 @@ server {
81
82
82
83
{{ range $project, $projContainers := groupByLabel $ "com.docker.compose.project" }}
83
84
{{ range $service, $containers := groupByLabel $projContainers "com.docker.compose.service" }}
84
- {{ $host := printf "%s.%s.%s" $service $project "docker" }}
85
+ {{ $host := printf "%s.%s.%s" $service $project $TLD }}
85
86
{{/* Don't create the implicit host if an explicit VIRTUAL_HOST with the same name has been defined */}}
86
87
{{ if eq 0 (len (where $ "Env.VIRTUAL_HOST" $host)) }}
87
88
{{ $container := first $containers }}
You can’t perform that action at this time.
0 commit comments