version: "3.6"
services:
  elasticsearch:
    environment:
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - "discovery.type=single-node"
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536
        hard: 65536
    deploy:
      placement:
        constraints: [node.role == manager]
      resources:
        limits:
          memory: 1000M
  kibana:
    deploy:
      placement:
        constraints: [node.role == manager]
