Browse Source

Don't fail startup if things don't resolve.

master
Chris Smith 5 years ago
parent
commit
00aa0e6254
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      templates/haproxy.cfg.tpl

+ 2
- 1
templates/haproxy.cfg.tpl View File

15
     timeout server 5000
15
     timeout server 5000
16
     compression algo gzip
16
     compression algo gzip
17
     compression type text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript
17
     compression type text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript
18
+    default-server init-addr last,libc,none check resolvers docker_resolver
18
 
19
 
19
 frontend main
20
 frontend main
20
     mode    http
21
     mode    http
33
     mode http
34
     mode http
34
     {{- range .Containers }}
35
     {{- range .Containers }}
35
         {{- if index .Labels "com.chameth.proxy" }}
36
         {{- if index .Labels "com.chameth.proxy" }}
36
-    server server1 {{ .Name }}:{{ index .Labels "com.chameth.proxy" }} check resolvers docker_resolver
37
+    server server1 {{ .Name }}:{{ index .Labels "com.chameth.proxy" }}
37
         {{- end -}}
38
         {{- end -}}
38
     {{- end -}}
39
     {{- end -}}
39
     {{- if .RequiresAuth }}
40
     {{- if .RequiresAuth }}

Loading…
Cancel
Save