Skip to content

Commit

Permalink
[frontend] Enable statistics for HAProxy in development
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Jun 7, 2018
1 parent fde09ee commit 678cc1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contrib/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ backend nodes
option httpchk HEAD /about HTTP/1.1\r\nHost:localhost
server web01 frontend:3000 check resolvers dockerdns resolve-prefer ipv4
server web02 frontend_node_2:3000 check resolvers dockerdns resolve-prefer ipv4

listen stats
bind :32700
stats enable
stats uri /
stats hide-version
stats auth Admin:opensuse
1 change: 1 addition & 0 deletions docker-compose.ha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
- ./contrib/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
ports:
- "8080:80"
- "32700:32700"
depends_on:
- frontend
- frontend_node_2
Expand Down

0 comments on commit 678cc1d

Please sign in to comment.