2020-02-03 03:44:55 -05:00
|
|
|
# Only used for testing the docker images
|
|
|
|
version: '3.7'
|
|
|
|
services:
|
2021-04-20 12:27:40 -04:00
|
|
|
opensearch-1:
|
|
|
|
image: opensearch:test
|
2020-02-03 03:44:55 -05:00
|
|
|
environment:
|
2021-04-20 12:27:40 -04:00
|
|
|
- node.name=opensearch-1
|
|
|
|
- cluster.initial_master_nodes=opensearch-1
|
|
|
|
- cluster.name=opensearch-1
|
2020-02-03 03:44:55 -05:00
|
|
|
- bootstrap.memory_lock=true
|
|
|
|
- network.publish_host=127.0.0.1
|
2021-04-09 13:24:41 -04:00
|
|
|
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
|
2021-03-08 13:06:46 -05:00
|
|
|
- path.repo=/tmp/opensearch-repo
|
2020-02-03 03:44:55 -05:00
|
|
|
- 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:
|
2021-04-20 12:27:40 -04:00
|
|
|
- ./build/repo:/tmp/opensearch-repo
|
|
|
|
- ./build/logs/1:/usr/share/opensearch/logs
|
2020-02-03 03:44:55 -05:00
|
|
|
ports:
|
|
|
|
- "9200"
|
|
|
|
- "9300"
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
|
|
|
healthcheck:
|
|
|
|
start_period: 15s
|
2021-04-09 13:24:41 -04:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9200"]
|
2020-02-03 03:44:55 -05:00
|
|
|
interval: 10s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 5
|
2021-04-20 12:27:40 -04:00
|
|
|
opensearch-2:
|
|
|
|
image: opensearch:test
|
2020-02-03 03:44:55 -05:00
|
|
|
environment:
|
2021-04-20 12:27:40 -04:00
|
|
|
- node.name=opensearch-2
|
|
|
|
- cluster.initial_master_nodes=opensearch-2
|
|
|
|
- cluster.name=opensearch-2
|
2020-02-03 03:44:55 -05:00
|
|
|
- bootstrap.memory_lock=true
|
|
|
|
- network.publish_host=127.0.0.1
|
2021-04-09 13:24:41 -04:00
|
|
|
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
|
2021-03-08 13:06:46 -05:00
|
|
|
- path.repo=/tmp/opensearch-repo
|
2020-02-03 03:44:55 -05:00
|
|
|
- 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:
|
2021-04-20 12:27:40 -04:00
|
|
|
- ./build/repo:/tmp/opensearch-repo
|
|
|
|
- ./build/logs/2:/usr/share/opensearch/logs
|
2020-02-03 03:44:55 -05:00
|
|
|
ports:
|
|
|
|
- "9200"
|
|
|
|
- "9300"
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
healthcheck:
|
|
|
|
start_period: 15s
|
2021-04-09 13:24:41 -04:00
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9200"]
|
2020-02-03 03:44:55 -05:00
|
|
|
interval: 10s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 5
|
|
|
|
haproxy:
|
|
|
|
image: haproxy:2.1.2
|
|
|
|
ports:
|
|
|
|
- "9600"
|
|
|
|
volumes:
|
2021-04-20 12:27:40 -04:00
|
|
|
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
|