https://github.com/samnoonabrar/elk
Elasticsearch, Logstash, Kibana in container services
https://github.com/samnoonabrar/elk
containerization docker docker-compose
Last synced: 2 months ago
JSON representation
Elasticsearch, Logstash, Kibana in container services
- Host: GitHub
- URL: https://github.com/samnoonabrar/elk
- Owner: samnoonabrar
- License: gpl-3.0
- Created: 2023-07-25T14:31:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T15:02:17.000Z (almost 3 years ago)
- Last Synced: 2025-12-27T12:12:04.183Z (6 months ago)
- Topics: containerization, docker, docker-compose
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ELK
### Elasticsearch, Logstash, and Kibana (ELK) in single-node
Project structure:
```
.
└── compose.yml
```
[_compose.yml_](compose.yml)
```
services:
elasticsearch:
image: elasticsearch:7.16.1
...
logstash:
image: logstash:7.16.1
...
kibana:
image: kibana:7.16.1
...
```
## Deploy with docker compose
```
$ docker compose up -d
Creating network "elasticsearch-logstash-kibana_elastic" with driver "bridge"
Creating es ... done
Creating log ... done
Creating kib ... done
```
## Expected result
Listing containers must show three containers running and the port mapping as below:
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
173f0634ed33 logstash:7.16.1 "/usr/local/bin/dock…" 43 seconds ago Up 41 seconds 0.0.0.0:5000->5000/tcp, 0.0.0.0:5044->5044/tcp, 0.0.0.0:9600->9600/tcp, 0.0.0.0:5000->5000/udp log
b448fd3e9b30 kibana:7.16.1 "/usr/local/bin/dumb…" 43 seconds ago Up 42 seconds 0.0.0.0:5601->5601/tcp kib
366d358fb03d elasticsearch:7.16.1 "/tini -- /usr/local…" 43 seconds ago Up 42 seconds (healthy) 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp es
```
After the application starts, navigate to below links in your web browser:
* Elasticsearch: [`http://localhost:9200`](http://localhost:9200)
* Logstash: [`http://localhost:9600`](http://localhost:9600)
* Kibana: [`http://localhost:5601/api/status`](http://localhost:5601/api/status)
Stop and remove the containers
```
$ docker compose down
```