add docker-compose file to set up ES5 for testing

This commit is contained in:
Jose Duran 2019-08-02 10:56:30 -05:00
parent 717c4425f8
commit 9a239e982a
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,3 @@
xpack.security.enabled: false
cluster.name: "docker-cluster"
network.host: 0.0.0.0

View File

@ -0,0 +1,35 @@
version: "2"
services:
elasticsearch1:
build: .
container_name: elasticsearch1
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
ports:
- 9200:9200
networks:
- esnet
elasticsearch2:
build: .
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch1"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
networks:
- esnet
networks:
esnet: {}

3
tests/ES5/dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.0
COPY config /usr/share/elasticsearch/config/