This is an easy to deploy Elasticsearch and Kibana ready to work for OpenVidu Pro.
- Docker
- Docker compose
- Git
- Git clone this repository in any directory:
git clone https://github.com/OpenVidu/elasticsearch-kibana.git
- Fill the parameters of the .env file. This parameters are mandatory:
DOMAIN_OR_PUBLIC_IP
: Domain or public IP where your installing Elasticsearch and Kibana.CERTIFICATE_TYPE
: The type of certificate you want to use:selfsigned
: Self signed certificate. Not recommended. OpenVidu Pro will not connect to selfsigned certificates. You need a valid certificate withletsencrypt
or your own certificate.letsencrypt
: Generate a new certificate using letsencrypt. Please set the required contact email for Let's Encrypt inLETSENCRYPT_EMAIL
variable. You need also a FQDN (Fully Qualified Domain Name) for letsencrypt to work properly.owncert
: Valid certificate purchased in a Internet services company. Please put the certificates files inside folder./owncert
with namescertificate.key
andcertificate.cert
.
LETSENCRYPT_EMAIL
: Fill this if you're usingCERTIFICATE_TYPE=letsencrypt
.ELASTICSEARCH_USERNAME
: Username for ElasticsearchELASTICSEARCH_PASSWORD
: Password for the Elasticsearch user.
- Execute the deployment with:
docker-compose up -d
And that's it. You will have your Elasticsearch and Kibana ready at:
- Elasticsearch:
https://<DOMAIN_OR_PUBLIC_IP>/
- Kibana:
https://<DOMAIN_OR_PUBLIC_IP>/kibana
You just need to add/modify this properties in your OpenVidu installation at /opt/openvidu/.env
:
OPENVIDU_PRO_ELASTICSEARCH_HOST=https://<DOMAIN_OR_PUBLIC_IP>:443/
OPENVIDU_PRO_KIBANA_HOST=https://<DOMAIN_OR_PUBLIC_IP>:443/kibana/
ELASTICSEARCH_USERNAME=<ELASTICSEARCH_USERNAME>
ELASTICSEARCH_PASSWORD=<ELASTICSEARCH_PASSWORD>