docker-compose.yml 517 B

1234567891011121314151617181920212223
  1. version: '3'
  2. services:
  3. elasticsearch:
  4. image: docker.elastic.co/elasticsearch/elasticsearch:5.6.0
  5. # container_name: elasticsearch
  6. hostname: elasticsearch
  7. environment:
  8. - bootstrap.memory_lock=true
  9. - xpack.security.enabled=false
  10. - "ES_JAVA_OPTS=-Xms1g -Xmx1g"
  11. ulimits:
  12. nproc: 65536
  13. nofile:
  14. soft: 65536
  15. hard: 65536
  16. memlock:
  17. soft: -1
  18. hard: -1
  19. volumes:
  20. - ./etc:/usr/share/elasticsearch/config
  21. ports:
  22. - 9200:9200