Integrate rabbitmqctl interface to cluster and standalone containers

This commit is contained in:
Matthew Jones 2016-09-15 12:06:44 -04:00
parent 8a0f7b1354
commit 2872409271
2 changed files with 19 additions and 0 deletions

View File

@ -12,6 +12,7 @@ services:
- "8013:8013"
- "1936:1936"
- "5555:5555"
- "15672:15672"
tower_1:
image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
hostname: tower_1
@ -22,6 +23,7 @@ services:
RABBITMQ_VHOST: /
volumes:
- "../:/tower_devel"
tower_2:
image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
hostname: tower_2

View File

@ -22,6 +22,11 @@ frontend flower
mode http
default_backend flower_nodes
frontend rabbitctl
bind *:15672
mode http
default_backend rabbitctl_nodes
backend nodes
mode http
balance roundrobin
@ -46,6 +51,18 @@ backend flower_nodes
server tower_2 tower_2:5555
server tower_3 tower_3:5555
backend rabbitctl_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 rabbitmq_1 rabbitmq_1:15672
server rabbitmq_2 rabbitmq_2:15672
server rabbitmq_3 rabbitmq_3:15672
listen stats
bind *:1936
stats enable