Skip to content

Instantly share code, notes, and snippets.

@nicosingh
Last active February 7, 2019 20:55
Show Gist options
  • Save nicosingh/88b93cbe03f3784d4fc9b4ccd0770c98 to your computer and use it in GitHub Desktop.
Save nicosingh/88b93cbe03f3784d4fc9b4ccd0770c98 to your computer and use it in GitHub Desktop.
Elasticsearch cluster PoC

Do not judge me. This is just a test

version: "3.4"
x-env-files: &env-files
env_file:
- .env
- .secrets
x-logging: &logging
driver: "json-file"
options:
max-size: "100m"
max-file: "5"
services:
elasticsearch-master:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
restart: always
environment:
- cluster.name=elasticsearch-docker
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- node.master=true
- node.data=false
- node.ingest=false
- "discovery.zen.ping.unicast.hosts=elasticsearch-master"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./volumes/elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
elasticsearch-data:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
restart: always
environment:
- cluster.name=elasticsearch-docker
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- node.master=false
- node.data=true
- node.ingest=false
- "discovery.zen.ping.unicast.hosts=elasticsearch-master"
ulimits:
memlock:
soft: -1
hard: -1
elasticsearch-ingest:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
restart: always
environment:
- cluster.name=elasticsearch-docker
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- node.master=false
- node.data=false
- node.ingest=true
- "discovery.zen.ping.unicast.hosts=elasticsearch-master"
ulimits:
memlock:
soft: -1
hard: -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment