-
-
Save raztud/6c319c91836a4581316d1ba729d2743b to your computer and use it in GitHub Desktop.
ELK stack (version 7.9.1) Docker compose bundle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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