mirror of
https://github.com/typeable/bloodhound.git
synced 2024-09-11 08:25:32 +03:00
36 lines
704 B
YAML
36 lines
704 B
YAML
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: {}
|