Coder Social home page Coder Social logo

rakutenrewards / docker-elasticsearch Goto Github PK

View Code? Open in Web Editor NEW
8.0 9.0 1.0 46 KB

Secured, Preconfigured and Dockerized version of ElasticSearch, tuned for various cloud providers

License: MIT License

Makefile 6.02% Shell 76.75% Dockerfile 17.23%
elasticsearch xpack gce aws docker searchguard

docker-elasticsearch's Introduction

This project focuses on running a fully preconfigured, dockerized version of ElasticSearch on various cloud providers. Current supported platforms are GCE , but AWS is in the works.

The custom configuration includes:

Supported ElasticSearch versions

  • 6.1.0 -> 6.2.4

How To Use

Configure docker to be able to push gcr.io with gcloud auth configure-docker

Create a gce.env file. (there is a gce.env.sample as an example) Make sure you have an environment variable PROJECT_ID defined with your google project ID.

Make sure you have gcloud installed and configured. Look up the supported build options in the Makefile

The default target would build the docker image, push it to your gcr.io and create a cluster in your project.

The build process will create the elastic.env which will have all the user passwords and environment variables provided to the cluster.

Environment Variables (make sure to include them into your gce.env file if you want to change the default values)

LOG_LEVEL | INFO

Log level from witch elasticsearch echoes logs.

Cluster

CLUSTER_NAME | elasticsearch

ES cluster name.

MINIMUM_MASTER_NODES | 1

This setting tells Elasticsearch to not elect a master unless there are enough master-eligible nodes available. Only then will an election take place. We recommend to set this variable to (number of nodes / 2) + 1

Security & Roles

All the passwords are autogenerated when the template is created

ELASTIC_PWD

password for built-in user elastic.

KIBANA_PWD

password for built-in user kibana.

LOGSTASH_PWD

password for built-in user logstash.

BEATS_PWD

password for built-in user beats.

CA_PWD

CA certificate passphrase.

TS_PWD

Truststore(public keys storage) password.

KS_PWD

Keystore(private key storage) password.

HTTP_SSL | true
  • If true then https is bound on 9200
  • If false then http is bound on 9200

Configure Elasticsearch

Configuration file is located in /config/elasticsearch.yml

Provide Custom passwords

You can provide your own passwords instance of the onces being generated. Set the env variable GENERATE_PASSWORDS to false and provide a /src/passwords file ( look at src/passwords.example )

User Feedback

Issues

If you have any problems with or questions about this image, please ask for help through a GitHub issue.

docker-elasticsearch's People

Contributors

aviv-ebates avatar liorr avatar romankor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.