Last active
February 2, 2020 22:58
-
-
Save thalesmg/332b019186bbd5278646252401c6dd18 to your computer and use it in GitHub Desktop.
elasticsearch docker compose
This file contains 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.7" | |
services: | |
elasticsearch: &base | |
image: elasticsearch:7.5.2 | |
environment: | |
# - discovery.type=single-node | |
- node.name=elasticsearch | |
- discovery.seed_hosts=noh2 | |
- cluster.initial_master_nodes=elasticsearch,noh2 | |
- cluster.routing.allocation.disk.watermark.low=0.99 | |
- cluster.routing.allocation.disk.watermark.high=0.99 | |
- cluster.routing.allocation.disk.watermark.flood_stage=0.99 | |
expose: | |
- "9200" | |
- "9300" | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
noh2: | |
<<: *base | |
environment: | |
- node.name=noh2 | |
- discovery.seed_hosts=elasticsearch | |
ports: | |
- "9301:9300" | |
kibana: | |
image: kibana:7.5.2 | |
depends_on: | |
- elasticsearch | |
ports: | |
- "5601:5601" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment