mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Integrate rabbitmqctl interface to cluster and standalone containers
This commit is contained in:
@@ -12,6 +12,7 @@ services:
|
|||||||
- "8013:8013"
|
- "8013:8013"
|
||||||
- "1936:1936"
|
- "1936:1936"
|
||||||
- "5555:5555"
|
- "5555:5555"
|
||||||
|
- "15672:15672"
|
||||||
tower_1:
|
tower_1:
|
||||||
image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
|
image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
|
||||||
hostname: tower_1
|
hostname: tower_1
|
||||||
@@ -22,6 +23,7 @@ services:
|
|||||||
RABBITMQ_VHOST: /
|
RABBITMQ_VHOST: /
|
||||||
volumes:
|
volumes:
|
||||||
- "../:/tower_devel"
|
- "../:/tower_devel"
|
||||||
|
|
||||||
tower_2:
|
tower_2:
|
||||||
image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
|
image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
|
||||||
hostname: tower_2
|
hostname: tower_2
|
||||||
|
|||||||
@@ -22,6 +22,11 @@ frontend flower
|
|||||||
mode http
|
mode http
|
||||||
default_backend flower_nodes
|
default_backend flower_nodes
|
||||||
|
|
||||||
|
frontend rabbitctl
|
||||||
|
bind *:15672
|
||||||
|
mode http
|
||||||
|
default_backend rabbitctl_nodes
|
||||||
|
|
||||||
backend nodes
|
backend nodes
|
||||||
mode http
|
mode http
|
||||||
balance roundrobin
|
balance roundrobin
|
||||||
@@ -46,6 +51,18 @@ backend flower_nodes
|
|||||||
server tower_2 tower_2:5555
|
server tower_2 tower_2:5555
|
||||||
server tower_3 tower_3: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
|
listen stats
|
||||||
bind *:1936
|
bind *:1936
|
||||||
stats enable
|
stats enable
|
||||||
|
|||||||
Reference in New Issue
Block a user