Public Repository

Last pushed: 2 years ago
Short Description
A data volume container for dockerfile/elasticsearch.
Full Description

A super-tiny volume container (168 bytes) with minimal elasticsearch configuration.

Creates a data volume and contains ES config file to instruct it to store the indexes and logs in this volume.

Create the image to install the volume locally:

docker create --name search-data communitycloud/search-data

Then link elasticsearch to this volume:

docker run --name search --volumes-from search-data -d dockerfile/elasticsearch

Elasticsearch is now storing data into this volume. Verify by running a quick ls:

docker run -it --rm --volumes-from search-data dockerfile/elasticsearch /bin/bash -c 'ls -lAR /data'

The configuration file is minimal as well:

docker run -it --rm --volumes-from search-data dockerfile/elasticsearch /bin/bash -c 'cat /data/elasticsearch.yml'
path:
  logs: /data/log
  data: /data/data
Docker Pull Command
Owner
communitycloud