1. version: '3.7'
    2. services:
    3. elasticsearch:
    4. image: elasticsearch:7.11.2
    5. restart: always
    6. environment:
    7. - cluster.name=es-docker-cluster
    8. - discovery.type=single-node
    9. ports:
    10. - 9200:9200
    11. volumes:
    12. - ./data:/usr/share/elasticsearch/data
    13. - ./plugins:/usr/share/elasticsearch/plugins
    14. kibana:
    15. image: kibana:7.11.2
    16. restart: always
    17. ports:
    18. - 5601:5601
    19. environment:
    20. ELASTICSEARCH_URL: http://elasticsearch