mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-08-10 00:51:49 +00:00
Update Docker Compose file format 3
This commit is contained in:
32
compose/demo/compose-haproxy-web/haproxy/haproxy.cfg
Normal file
32
compose/demo/compose-haproxy-web/haproxy/haproxy.cfg
Normal file
@@ -0,0 +1,32 @@
|
||||
global
|
||||
log 127.0.0.1 local0
|
||||
log 127.0.0.1 local1 notice
|
||||
|
||||
defaults
|
||||
log global
|
||||
mode http
|
||||
option httplog
|
||||
option dontlognull
|
||||
timeout connect 5000ms
|
||||
timeout client 50000ms
|
||||
timeout server 50000ms
|
||||
|
||||
listen stats
|
||||
bind 0.0.0.0:70
|
||||
stats enable
|
||||
stats uri /
|
||||
|
||||
frontend balancer
|
||||
bind 0.0.0.0:80
|
||||
mode http
|
||||
default_backend web_backends
|
||||
|
||||
backend web_backends
|
||||
mode http
|
||||
option forwardfor
|
||||
balance roundrobin
|
||||
server weba weba:80 check
|
||||
server webb webb:80 check
|
||||
server webc webc:80 check
|
||||
option httpchk GET /
|
||||
http-check expect status 200
|
Reference in New Issue
Block a user