Hi team,
I need to create a Kibana docker container to work with elastic search with SSL ( Running on non-container env.) I am new on containerizing the application. Below is my docker-compose.yml file.
version: '3'
services:
kibana:
image: docker.elastic.co/kibana/kibana:7.5.2
container_name: kibana
environment:
- SERVER_NAME=kibana
- ELASTICSEARCH_HOSTS=https://app-espoc2-ssl.org.com:9200
- XPACK_SECURITY_ENABLED=true
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD="XXXXXX"
- ELASTICSEARCH_SSL_CERTIFICATEAUTHORITIES=["/data/DigiCert_Global_Root_CA.pem", /data/DigiCert_SHA2_Secure_Server_CA.pem]
- ELASTICSEARCH_SSL_VERIFICATIONMODE=certificate
- SERVER_SSL_ENABLED=true
- SERVER_SSL_KEY=/data/orgPrivateKey.pem
- SERVER_SSL_CERTIFICATE=/data/_.org.com.pem
ports:
- 5601:5601
volumes:
- ./ELK-certs/_.org.com.pem:/data/_.org.com.pem
- ./ELK-certs/orgPrivateKey.pem:/data/orgPrivateKey.pem
- ./ELK-certs/DigiCert_Global_Root_CA.pem:/data/DigiCert_Global_Root_CA.pem
- ./ELK-certs/DigiCert_SHA2_Secure_Server_CA.pem:/data/DigiCert_SHA2_Secure_Server_CA.pem
When i run this i get a error:
ERROR: for kibana Cannot start service kibana: error while creating mount source path '/host_mnt/c/work/APP2020/kibana/ELK-certs/DigiCert_Global_Root_CA.pem': mkdir /host_mnt/c/work/APP2020/kibana/ELK-certs/DigiCert_Global_Root_CA.pem: file exists
ERROR: for kibana Cannot start service kibana: error while creating mount source path '/host_mnt/c/work/APP2020/kibana/ELK-certs/DigiCert_Global_Root_CA.pem': mkdir /host_mnt/c/work/APP2020/kibana/ELK-certs/DigiCert_Global_Root_CA.pem: file exists
Thanks in advance !!