version: "3.6"
services:
  elasticsearch:
    ports:
      - "9200:9200"
    environment:
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms256m -Xmx256m"
      - "discovery.type=single-node"
    deploy:
      resources:
        limits:
          memory: 500M
  kibana:
    ports:
      - "5601:5601"
