Configure Nginx Reverse Proxy for Kibana (DockerCompose)
secure Kibana with Nginx Reverse Proxy. Here we will be using docker-compose to running all the services.
ELK Stack:
The ELK Stack is a collection of three open-source products — Elasticsearch, Logstash, and Kibana. ELK stack provides centralized logging in order to identify problems with servers or applications. It allows you to search all the logs in a single place. It also helps to find issues in multiple servers by connecting logs during a specific time frame.
Prerequisites:
- You must have docker installed on your machine (https://docs.docker.com/engine/install/)
- Docker must be up and running
Docker-compose.yml:
create a file with the name docker-compose.yml.(open command line to that location).
Now we can compose run with this command (docker-compose -f “docker-compose.yml” up -d — build).
Note:- We can change the user name and password inside the docker-compose.yml in place of
— BASIC_AUTH_USERNAME={username}
— BASIC_AUTH_PASSWORD={password}
Conclusion:
If you followed this guide you should have successfully configured Nginx reverse proxy for Kibana. This provides an additional security layer that protects the data managed through Kibana.