version: '3' services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:5.6.0 # container_name: elasticsearch hostname: elasticsearch environment: - bootstrap.memory_lock=true - xpack.security.enabled=false - "ES_JAVA_OPTS=-Xms1g -Xmx1g" ulimits: nproc: 65536 nofile: soft: 65536 hard: 65536 memlock: soft: -1 hard: -1 volumes: - ./etc:/usr/share/elasticsearch/config ports: - 9200:9200