|
@@ -103,66 +103,3 @@ services:
|
|
|
interval: 10s
|
|
|
timeout: 2s
|
|
|
retries: 5
|
|
|
- elasticsearch-oss-1:
|
|
|
- image: elasticsearch:test
|
|
|
- environment:
|
|
|
- - node.name=elasticsearch-oss-1
|
|
|
- - cluster.initial_master_nodes=elasticsearch-oss-1,elasticsearch-oss-2
|
|
|
- - discovery.seed_hosts=elasticsearch-oss-2:9300
|
|
|
- - cluster.name=elasticsearch-oss
|
|
|
- - bootstrap.memory_lock=true
|
|
|
- - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
- - path.repo=/tmp/es-repo
|
|
|
- - node.attr.testattr=test
|
|
|
- - cluster.routing.allocation.disk.watermark.low=1b
|
|
|
- - cluster.routing.allocation.disk.watermark.high=1b
|
|
|
- - cluster.routing.allocation.disk.watermark.flood_stage=1b
|
|
|
- - node.store.allow_mmap=false
|
|
|
- volumes:
|
|
|
- - ./build/oss-repo:/tmp/es-repo
|
|
|
- - ./build/logs/oss-1:/usr/share/elasticsearch/logs
|
|
|
- ports:
|
|
|
- - "9200"
|
|
|
- ulimits:
|
|
|
- memlock:
|
|
|
- soft: -1
|
|
|
- hard: -1
|
|
|
- nofile:
|
|
|
- soft: 65536
|
|
|
- hard: 65536
|
|
|
- healthcheck:
|
|
|
- start_period: 15s
|
|
|
- test: ["CMD", "curl", "-f", "http://localhost:9200"]
|
|
|
- interval: 10s
|
|
|
- timeout: 2s
|
|
|
- retries: 5
|
|
|
- elasticsearch-oss-2:
|
|
|
- image: elasticsearch:test
|
|
|
- environment:
|
|
|
- - node.name=elasticsearch-oss-2
|
|
|
- - cluster.initial_master_nodes=elasticsearch-oss-1,elasticsearch-oss-2
|
|
|
- - discovery.seed_hosts=elasticsearch-oss-1:9300
|
|
|
- - cluster.name=elasticsearch-oss
|
|
|
- - bootstrap.memory_lock=true
|
|
|
- - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
- - path.repo=/tmp/es-repo
|
|
|
- - node.attr.testattr=test
|
|
|
- - cluster.routing.allocation.disk.watermark.low=1b
|
|
|
- - cluster.routing.allocation.disk.watermark.high=1b
|
|
|
- - cluster.routing.allocation.disk.watermark.flood_stage=1b
|
|
|
- - node.store.allow_mmap=false
|
|
|
- volumes:
|
|
|
- - ./build/oss-repo:/tmp/es-repo
|
|
|
- - ./build/logs/oss-2:/usr/share/elasticsearch/logs
|
|
|
- ports:
|
|
|
- - "9200"
|
|
|
- ulimits:
|
|
|
- memlock:
|
|
|
- soft: -1
|
|
|
- hard: -1
|
|
|
- healthcheck:
|
|
|
- start_period: 15s
|
|
|
- test: ["CMD", "curl", "-f", "http://localhost:9200"]
|
|
|
- interval: 10s
|
|
|
- timeout: 2s
|
|
|
- retries: 5
|