summaryrefslogtreecommitdiffstats
path: root/tools/docker-compose-cluster.yml
diff options
context:
space:
mode:
authorMatthew Jones <matburt@redhat.com>2016-09-08 16:18:14 +0200
committerMatthew Jones <matburt@redhat.com>2016-09-08 16:18:14 +0200
commitebf103f345b5f4662074a5189cdccf2e57940cb3 (patch)
treee5e9ef207ce8ce6bb69622a0032ead194c916754 /tools/docker-compose-cluster.yml
parentIntegrate memcached into setup playbook (diff)
downloadawx-ebf103f345b5f4662074a5189cdccf2e57940cb3.tar.xz
awx-ebf103f345b5f4662074a5189cdccf2e57940cb3.zip
Initial Docker Compose workflow for Tower cluster
The goal is to share a common pattern with the existing development work
Diffstat (limited to 'tools/docker-compose-cluster.yml')
-rw-r--r--tools/docker-compose-cluster.yml59
1 files changed, 59 insertions, 0 deletions
diff --git a/tools/docker-compose-cluster.yml b/tools/docker-compose-cluster.yml
new file mode 100644
index 0000000000..0ac007d96a
--- /dev/null
+++ b/tools/docker-compose-cluster.yml
@@ -0,0 +1,59 @@
+version: '2'
+services:
+ haproxy:
+ build:
+ context: ./docker-compose
+ dockerfile: Dockerfile-haproxy
+ depends_on:
+ - "tower_1"
+ - "tower_2"
+ - "tower_3"
+ ports:
+ - "8013:8013"
+ - "1936:1936"
+ tower_1:
+ image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
+ environment:
+ RABBITMQ_HOST: rabbitmq_1
+ RABBITMQ_USER: guest
+ RABBITMQ_PASS: guest
+ RABBITMQ_VHOST: /
+ volumes:
+ - "../:/tower_devel"
+ tower_2:
+ image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
+ environment:
+ RABBITMQ_HOST: rabbitmq_2
+ RABBITMQ_USER: guest
+ RABBITMQ_PASS: guest
+ RABBITMQ_VHOST: /
+ volumes:
+ - "../:/tower_devel"
+ tower_3:
+ image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
+ environment:
+ RABBITMQ_HOST: rabbitmq_3
+ RABBITMQ_USER: guest
+ RABBITMQ_PASS: guest
+ RABBITMQ_VHOST: /
+ volumes:
+ - "../:/tower_devel"
+ rabbitmq_1:
+ image: gcr.io/ansible-tower-engineering/rabbit_cluster_node:latest
+ hostname: rabbitmq_1
+ rabbitmq_2:
+ image: gcr.io/ansible-tower-engineering/rabbit_cluster_node:latest
+ hostname: rabbitmq_2
+ environment:
+ - CLUSTERED=true
+ - CLUSTER_WITH=rabbitmq_1
+ rabbitmq_3:
+ image: gcr.io/ansible-tower-engineering/rabbit_cluster_node:latest
+ hostname: rabbitmq_3
+ environment:
+ - CLUSTERED=true
+ - CLUSTER_WITH=rabbitmq_1
+ postgres:
+ image: postgres:9.4.1
+ memcached:
+ image: memcached:alpine