Skip to content

Instantly share code, notes, and snippets.

@mikeblum
Created January 6, 2016 23:26
Show Gist options
  • Save mikeblum/bfbae2ee43b731b8ce36 to your computer and use it in GitHub Desktop.
Save mikeblum/bfbae2ee43b731b8ce36 to your computer and use it in GitHub Desktop.
docker-compose script for creating a distributed SolrCloud cluster on AWS ECS
zookeeper:
image: "987737556516.dkr.ecr.us-east-1.amazonaws.com/tsgrp/zookeeper"
cpu_shares: 100
ports:
- "2181:2181"
container_name: "zookeeper"
hostname: "zookeeper"
solr1:
image: solr
cpu_shares: 100
ports:
- "8983:8983"
container_name: solr1
links:
- zookeeper:ZK
command: /opt/solr/bin/solr start -f -z zookeeper:2181
solr2:
image: solr
cpu_shares: 100
ports:
- "8984:8983"
container_name: solr2
links:
- zookeeper:ZK
command: /opt/solr/bin/solr start -f -z zookeeper:2181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment