Skip to content

Instantly share code, notes, and snippets.

@Shmarkus
Last active February 1, 2022 13:41
Show Gist options
  • Save Shmarkus/c9291c7a0343c1244380268f3bb22fe2 to your computer and use it in GitHub Desktop.
Save Shmarkus/c9291c7a0343c1244380268f3bb22fe2 to your computer and use it in GitHub Desktop.
ELK stack (version 7.16.3) Docker compose bundle
version: "3"
services:
elasticsearch:
image: elasticsearch:7.16.3
container_name: elasticsearch
restart: unless-stopped
environment:
- node.name=elasticsearch
- discovery.seed_hosts=elasticsearch
- cluster.initial_master_nodes=elasticsearch
- cluster.name=docker-cluster
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- ./esdata/:/usr/share/elasticsearch/data
networks:
- elk_net
logstash:
image: logstash:7.16.3
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.16.3
container_name: kibana
restart: unless-stopped
ports:
- 5601:5601
networks:
- elk_net
networks:
elk_net:
external:
name: elk_net
@Shmarkus
Copy link
Author

Shmarkus commented Jan 5, 2021

Bump to 7.10.1. Can do an in-place upgrade. No data loss, everyhting works as expected.

@Shmarkus
Copy link
Author

Shmarkus commented Feb 1, 2022

Bump to 7.16.3 required additional environment variable in elasticsearch:

  • xpack.security.enabled=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment