docker-compose.yml 888 B

12345678910111213141516171819202122232425262728293031323334
  1. version: '3'
  2. services:
  3. elasticsearch:
  4. image: docker.elastic.co/elasticsearch/elasticsearch:5.6.16
  5. hostname: elasticsearch
  6. environment:
  7. - cluster.name=elasticsearch
  8. - bootstrap.memory_lock=true
  9. - discovery.type=single-node
  10. # - http.publish_host=localhost
  11. # - http.host=0.0.0.0
  12. # - transport.host=127.0.0.1
  13. # - network.host=_local_
  14. - network.publish_host=127.0.0.1
  15. - logger.org.elasticsearch=warn
  16. - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
  17. - xpack.security.enabled=false
  18. - xpack.ml.enabled=false
  19. - script.inline=true
  20. - script.stored=true
  21. - script.file=true
  22. ulimits:
  23. nproc: 65536
  24. nofile:
  25. soft: 65536
  26. hard: 65536
  27. memlock:
  28. soft: -1
  29. hard: -1
  30. # volumes:
  31. # - ./data/elasticsearch:/usr/share/elasticsearch/data
  32. ports:
  33. - 9200:9200