mirror of
https://github.com/typeable/bloodhound.git
synced 2024-09-11 08:25:32 +03:00
add docker-compose file to set up ES5 for testing
This commit is contained in:
parent
717c4425f8
commit
9a239e982a
3
tests/ES5/config/elasticsearch.yml
Normal file
3
tests/ES5/config/elasticsearch.yml
Normal file
@ -0,0 +1,3 @@
|
||||
xpack.security.enabled: false
|
||||
cluster.name: "docker-cluster"
|
||||
network.host: 0.0.0.0
|
35
tests/ES5/docker-compose.yml
Normal file
35
tests/ES5/docker-compose.yml
Normal 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
3
tests/ES5/dockerfile
Normal file
@ -0,0 +1,3 @@
|
||||
FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.0
|
||||
|
||||
COPY config /usr/share/elasticsearch/config/
|
Loading…
Reference in New Issue
Block a user