version: "3.1" services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.0 container_name: elasticsearch environment: - cluster.name=codealong-cluster - bootstrap.memory_lock=true - "ES_JAVA_OPTS=-Xms2048m -Xmx2048m" ulimits: memlock: soft: -1 hard: -1 volumes: - esdata:/usr/share/elasticsearch/data ports: - 9200:9200 kibana: image: codealong-kibana:latest container_name: kibana ports: - 5601:5601 volumes: esdata: driver: local