https://github.com/mpolinowski/elk-server-compose
Elasticsearch & Kibana v8 with Docker Compose
https://github.com/mpolinowski/elk-server-compose
docker-compose elastic elasticsearch kibana
Last synced: 19 days ago
JSON representation
Elasticsearch & Kibana v8 with Docker Compose
- Host: GitHub
- URL: https://github.com/mpolinowski/elk-server-compose
- Owner: mpolinowski
- License: mit
- Created: 2022-02-13T09:07:55.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-20T10:00:32.000Z (over 4 years ago)
- Last Synced: 2025-03-23T13:15:08.708Z (about 1 year ago)
- Topics: docker-compose, elastic, elasticsearch, kibana
- Language: Dockerfile
- Homepage: https://mpolinowski.github.io/devnotes/2022-02-02--elasticsearch-v8-upgrade
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
- [The Elastic Stack](#the-elastic-stack)
- [Setup](#setup)
# The Elastic Stack
## Setup
1. Clone the this repository:
```bash
git clone https://github.com/mpolinowski/elk-server-compose.git
```
2. Build and Run:
```bash
docker-compose build
docker-compose up
```
3. Create Random User Logins
Now I can connect to the running Elasticsearch container and generate random passwords for both the `elastic` and `kibana_system` user:
```bash
docker-compose exec -T elasticsearch bin/elasticsearch-reset-password --batch --user elastic
```
```bash
docker-compose exec -T elasticsearch bin/elasticsearch-reset-password --batch --user kibana_system
```
4. Replace Kibana User Login
Replace the password of the `kibana_system` user inside the Kibana configuration file with the password generated in the previous step:
_kibana/config/kibana.yml_
```yml
elasticsearch.username: kibana_system
elasticsearch.password: 'mygeneratedpassword'
```
And change the __ELASTIC_PASSWORD__ environment variable from the elasticsearch service inside the Compose file `docker-compose.yml`.:
```yml
ELASTIC_PASSWORD: 'mygeneratedpassword'
```
5. Restart and Start Using Elasticsearch / Kibana