summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/docker-compose-cluster.yml1
-rw-r--r--tools/docker-compose.yml1
-rw-r--r--tools/docker-compose/haproxy.cfg17
3 files changed, 19 insertions, 0 deletions
diff --git a/tools/docker-compose-cluster.yml b/tools/docker-compose-cluster.yml
index 86027f8849..1b1dee4041 100644
--- a/tools/docker-compose-cluster.yml
+++ b/tools/docker-compose-cluster.yml
@@ -11,6 +11,7 @@ services:
ports:
- "8013:8013"
- "1936:1936"
+ - "5555:5555"
tower_1:
image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
hostname: tower_1
diff --git a/tools/docker-compose.yml b/tools/docker-compose.yml
index f34bb25766..08aec5babd 100644
--- a/tools/docker-compose.yml
+++ b/tools/docker-compose.yml
@@ -12,6 +12,7 @@ services:
ports:
- "8080:8080"
- "8013:8013"
+ - "5555:5555"
links:
- postgres
- memcached
diff --git a/tools/docker-compose/haproxy.cfg b/tools/docker-compose/haproxy.cfg
index cfbb3965f7..01d3c94a4a 100644
--- a/tools/docker-compose/haproxy.cfg
+++ b/tools/docker-compose/haproxy.cfg
@@ -17,6 +17,11 @@ frontend localnodes
mode http
default_backend nodes
+frontend flower
+ bind *:5555
+ mode http
+ default_backend flower_nodes
+
backend nodes
mode http
balance roundrobin
@@ -29,6 +34,18 @@ backend nodes
server tower_2 tower_2:8013 check
server tower_3 tower_3:8013 check
+backend flower_nodes
+ mode http
+ balance roundrobin
+ option forwardfor
+ option http-pretend-keepalive
+ http-request set-header X-Forwarded-Port %[dst_port]
+ http-request add-header X-Forwarded-Proto https if { ssl_fc }
+ #option httpchk HEAD / HTTP/1.1\r\nHost:localhost
+ server tower_1 tower_1:5555
+ server tower_2 tower_2:5555
+ server tower_3 tower_3:5555
+
listen stats
bind *:1936
stats enable