Skip to content

Instantly share code, notes, and snippets.

@raztud
Forked from Shmarkus/elk-docker-compose.yml
Created October 25, 2020 21:01
Show Gist options
  • Save raztud/6c319c91836a4581316d1ba729d2743b to your computer and use it in GitHub Desktop.
Save raztud/6c319c91836a4581316d1ba729d2743b to your computer and use it in GitHub Desktop.
ELK stack (version 7.9.1) Docker compose bundle
version: "3"
services:
elasticsearch:
image: elasticsearch:7.9.1
container_name: elasticsearch
restart: unless-stopped
environment:
- node.name=elasticsearch
- discovery.seed_hosts=elasticsearch
- cluster.initial_master_nodes=elasticsearch
- cluster.name=docker-cluster
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- ./esdata/:/usr/share/elasticsearch/data
networks:
- elk_net
logstash:
image: logstash:7.9.1
container_name: logstash
restart: unless-stopped
volumes:
- ./logstash.conf:/config-dir/logstash.conf:ro
links:
- elasticsearch
entrypoint: logstash -f /config-dir/logstash.conf
networks:
- elk_net
kibana:
image: kibana:7.9.1
container_name: kibana
restart: unless-stopped
ports:
- 5601:5601
networks:
- elk_net
networks:
elk_net:
external:
name: elk_net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment