Elasticsearch powers search in Atlassian's Bitbucket Server. This Docker container is based on the Atlassian guide to Install and configure a remote Elasticsearch instance and makes it easy to get Elasticsearch up and running for use with Bitbucket Server.
For Elasticsearch's data directory that is used to store the search indexes, we recommend mounting a host directory as a data volume, or via a named volume if using a docker version >= 1.9.
To get started you can use a data volume, or named volumes. In this example we'll use named volumes.
$> docker volume create --name elasticVolume $> docker run -v elasticVolume:/usr/share/elasticsearch/data --name "elasticsearch" -d -p 9200:9200 dchevell/bitbucket-elasticsearch
Success. Elasticsearch is now available on http://localhost:9200*
* Note: If you are using
docker-machine on Mac OS X, please use
open http://$(docker-machine ip default):8085 instead.
This container comes pre-configured with Atlassian's free Elasticsearch security plugin, buckler. You can specify a basic authentication username and password via the following environment variables.
The username to authenticate to Elasticsearch
The password to authenticate to Elasticsearch
Memory / Heap Size
If you need to override the default heap size for Elasticsearch, you can specify a custom value via the below environment variable:
The total heap size of the JVM
This Docker container is unsupported and is intended for illustration purposes only.