Ready to use lean (157MB) Elasticsearch Docker image ready for using within AWS EC2.
- Oracle JRE 8 Update 92
- Elasticsearch 2.3.2
- AWS plug-in
- EC2 credentials for reading EC2 tags
- EC2 tag key and tag value for identifying machines used in the cluster
Ready to use node for cluster elasticsearch-default
:
docker run --name elasticsearch \
--detach \
--privileged \
--volume /path/to/data_folder:/data \
-e AWS_KEY=xxxxxxxxxxxx \
-e AWS_SECRET=xxxxxxxxxxxx \
-e TAG_KEY=xxxxxxxxxxxx \
-e TAG_VALUE=xxxxxxxxxxxx \
quay.io/pires/docker-elasticsearch-aws:2.3.2
Ready to use node for cluster myclustername
:
docker run --name elasticsearch \
--detach \
--privileged \
--volume /path/to/data_folder:/data \
-e CLUSTER_NAME=myclustername \
-e AWS_KEY=xxxxxxxxxxxx \
-e AWS_SECRET=xxxxxxxxxxxx \
-e TAG_KEY=xxxxxxxxxxxx \
-e TAG_VALUE=xxxxxxxxxxxx \
quay.io/pires/docker-elasticsearch-aws:2.3.2
Ready to use node for cluster elasticsearch-default
, with 8GB heap allocated to Elasticsearch:
docker run --name elasticsearch \
--detach \
--privileged \
--volume /path/to/data_folder:/data \
-e ES_HEAP_SIZE=8G \
-e AWS_KEY=xxxxxxxxxxxx \
-e AWS_SECRET=xxxxxxxxxxxx \
-e TAG_KEY=xxxxxxxxxxxx \
-e TAG_VALUE=xxxxxxxxxxxx \
quay.io/pires/docker-elasticsearch-aws:2.3.2
Master-only node for cluster elasticsearch-default
:
docker run --name elasticsearch \
--detach \
--privileged \
--volume /path/to/data_folder:/data \
-e NODE_DATA=false \
-e HTTP_ENABLE=false \
-e AWS_KEY=xxxxxxxxxxxx \
-e AWS_SECRET=xxxxxxxxxxxx \
-e TAG_KEY=xxxxxxxxxxxx \
-e TAG_VALUE=xxxxxxxxxxxx \
quay.io/pires/docker-elasticsearch-aws:2.3.2
Data-only node for cluster elasticsearch-default
:
docker run --name elasticsearch \
--detach \
--privileged \
--volume /path/to/data_folder:/data \
-e NODE_MASTER=false \
-e HTTP_ENABLE=false \
-e AWS_KEY=xxxxxxxxxxxx \
-e AWS_SECRET=xxxxxxxxxxxx \
-e TAG_KEY=xxxxxxxxxxxx \
-e TAG_VALUE=xxxxxxxxxxxx \
quay.io/pires/docker-elasticsearch-aws:2.3.2
Client-only node for cluster elasticsearch-default
:
docker run --name elasticsearch \
--detach \
--privileged \
--volume /path/to/data_folder:/data \
-e NODE_MASTER=false \
-e NODE_DATA=false \
-e AWS_KEY=xxxxxxxxxxxx \
-e AWS_SECRET=xxxxxxxxxxxx \
-e TAG_KEY=xxxxxxxxxxxx \
-e TAG_VALUE=xxxxxxxxxxxx \
quay.io/pires/docker-elasticsearch-aws:2.3.2