a3c5834594
* devenv: elastic: improved config * better ascii-codes
24 lines
757 B
YAML
24 lines
757 B
YAML
# You need to run 'sysctl -w vm.max_map_count=262144' on the host machine
|
|
|
|
elasticsearch:
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:${elastic_version}
|
|
command: elasticsearch
|
|
environment:
|
|
- "discovery.type=single-node"
|
|
- "xpack.license.self_generated.type=basic"
|
|
- "xpack.security.enabled=false"
|
|
ports:
|
|
- "9200:9200"
|
|
|
|
data:
|
|
build: docker/blocks/elastic/data
|
|
command: node /home/node/data.js http://elasticsearch:9200
|
|
depends_on:
|
|
- elasticsearch
|
|
# elastic starts slowly, the first couple start of data.js
|
|
# might fail, so we auto-restart it on failure.
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 5s
|
|
max_attempts: 20 # should be enough |