| 2 | |
| 3 | |
| 4 | 1. create internal docker network |
| 5 | {{{ |
| 6 | docker network create -d bridge mynetwork |
| 7 | }}} |
| 8 | |
| 9 | 2. start elasticsearch |
| 10 | {{{ |
| 11 | docker run -p 9200:9200 -p 9300:9300 --net=mynetwork --name elasticsearch -e "discovery.type=single-node" docker.elastic.co/elasticsearc |
| 12 | h/elasticsearch:7.6.2 |
| 13 | }}} |
| 14 | |
| 15 | 3. start logstash |
| 16 | {{{ |
| 17 | docker run --rm -it --name=logstash --network=mynetwork -v ~/Documents/Dockers/ELK/Logstash/pipeline/:/usr/share/logstash/pipeline/ dock |
| 18 | er.elastic.co/logstash/logstash:7.6.2 |
| 19 | }}} |
| 20 | |
| 21 | 4. start kibana |
| 22 | {{{ |
| 23 | docker run --rm --name kibana --net=mynetwork -p 5601:5601 kibana:7.6.2 |
| 24 | }}} |