Last active
February 7, 2019 20:55
-
-
Save nicosingh/88b93cbe03f3784d4fc9b4ccd0770c98 to your computer and use it in GitHub Desktop.
Elasticsearch cluster PoC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
volumes/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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