• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question Docker ELK elasticsearch and Kibana

Julian-b90

New Pleskian
I have two Docker Containers start from plesk docker extension.
I have problems connect from kibana in to the elasticsearch container.

Have anyone a idea?

System:
  • OS: ‪Ubuntu 18.04.4 LTS‬
  • Plesk Obsidian 18.0.25 Update Nr. 2
  • Plesk Docker 1.4.6-168
  • Elasticsearch 7.6.1
  • Kibana 7.6.1
 
Kibana communicates with Elastic through port 9200. You have to to create this connection between Docker Containers through this port.
 
Yes i have add this Settings:

elasticsearch:
  • autorestart = true
  • auto port mappig = false
  • manually port mapping
    • 9200 => 9200
    • 9300 => 9300
  • Environment variables
    • PATH => /usr/share/elasticsearch/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • ELASTIC_CONTAINER => true
  • Volume-Mapping:
    • /usr/share/elasticsearch/config/elasticsearch.yml => /var/www/vhosts/xxxx.de/es/elasticsearch.yml
    • /usr/share/elasticsearch/logs => /var/www/vhosts/xxxx.de/logs/es
  • elasticsearch.yml
    • YAML:
      ---
      ## Default Elasticsearch configuration from Elasticsearch base image.
      ## https://github.com/elastic/elasticsearch/blob/master/distribution/docker/src/docker/config/elasticsearch.yml
      #
      cluster.name: "elasticsearch"
      network.host: 0.0.0.0
      
      
      discovery.seed_hosts:
         - localhost:9300
         - localhost:9200
         - elasticsearch:9200
         - elasticsearch:9300
      cluster.initial_master_nodes:
         - master-node-a
      
      ## X-Pack settings
      ## see https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.htruetml
      #
      # xpack.security.enabled: true
      # xpack.monitoring.collection.enabled: true
      
      node.store.allow_mmap: false

Kibana
  • autorestart = true
  • auto port mapping => false
  • manuell port
    • 5601 => 5601
  • Volume-Mapping:
    • /usr/share/kibana/config/kibana.yml => /var/www/vhosts/xxxx.de/es/kibana.yml
  • Environment variables
    • PATH => /usr/share/kibana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    • ELASTIC_CONTAINER => true
  • kibana.yml
    • YAML:
      ---
      ## Default Kibana configuration from Kibana base image.
      ## https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/templates/kibana_yml.template.js
      #
      server.name: kibana
      server.host: "0"
      elasticsearch.hosts: [ "http://elasticsearch:9200/" ]
      xpack.monitoring.ui.container.elasticsearch.enabled: true
      
      ## X-Pack security credentials
      #
      elasticsearch.username: elastic
      elasticsearch.password: changeme


In addition i have create a docker network with: docker network create elk

and add this two containers to this elk network.
 
Back
Top