version: '3' services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.1.0 environment: - cluster.name=docker-cluster - bootstrap.memory_lock=true - node.name=master - cluster.initial_master_nodes=master - "ES_JAVA_OPTS=-Xms512m -Xmx512m" ulimits: memlock: soft: -1 hard: -1 ports: - "9200:9200" kibana: image: docker.elastic.co/kibana/kibana:7.1.0 ports: - "5601:5601"