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,6 +15,7 @@ defaults
15 15
     timeout server 5000
16 16
     compression algo gzip
17 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 20
 frontend main
20 21
     mode    http
@@ -33,7 +34,7 @@ backend {{ .Name | replace "." "_" }}
33 34
     mode http
34 35
     {{- range .Containers }}
35 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 38
         {{- end -}}
38 39
     {{- end -}}
39 40
     {{- if .RequiresAuth }}

Loading…
Cancel
Save