Configuration for Elasticsearch with docker compose for development
Hi! I'm Alessandro Descovi.
I develop web stuff with Rubynetti in Italy, Venice.
We use Docker, Ruby on Rails, and stuff like that for developing business and game solutions.
Very often we need to use Elasticsearch to develop search engines inside our app.
For this reason, we need to put it inside a docker-compose.yml file.
It's very important to remember to use variables setting for dev usage.
This is our average configuration for dev environment:
elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2 container_name: elasticsearch volumes: - esdata1:/usr/share/elasticsearch/data ports: - 127.0.0.1:9200:9200 environment: - "discovery.type=single-node" - "ES_JAVA_OPTS=-Xms1G -Xmx1G"