Running a local kibana in a container

后端 未结 2 1676
自闭症患者
自闭症患者 2021-01-31 10:17

I am trying to run use kibana console with my local elasticsearch (container) In the ElasticSearch documentation I see

docker run -p 9200:9200 -p 9300:9300 -e          


        
2条回答
  •  余生分开走
    2021-01-31 10:58

    It is convenient to use docker-compose as well.
    For instance, the file below, stored in home directory, allows to start Kibana with one command:
    docker-compose up -d:

    # docker-compose.yml
    
    version: "2"
     kibana:
        image: "docker.elastic.co/kibana/kibana:6.2.2"
        container_name: "kibana"
        environment:
          - "ELASTICSEARCH_URL=http://:9200"
          - "XPACK_GRAPH_ENABLED=false"
          - "XPACK_ML_ENABLED=false"
          - "XPACK_REPORTING_ENABLED=false"
          - "XPACK_SECURITY_ENABLED=false"
          - "XPACK_WATCHER_ENABLED=false"
        ports:
          - "5601:5601"
        restart: "unless-stopped"
    

    In addition, Kibana service might be a part of your project in development environment (in case, docker-compose is used).

提交回复
热议问题