$ docker-compose build
$ docker-compose up
Based on the official Docker images from Elastic:
By default, the stack exposes the following ports:
- 5000: Logstash TCP input
- 900: Elasticsearch HTTP
- 9300: Elasticsearch TCP transport
- 5601: Kibana
NOTE: Configuration is not dynamically reloaded.
kibana/config/kibana.yml
config
(map entire directory instead of a single file)
logstash/config/logstash.yml
.config
(map entire directory instead of a single file, however you must need alog4j2.properties
file for it's own logging)
elasticsearch/config/elasticsearch.yml
.
Specify the options to override directly via environment variables:
elasticsearch:
environment:
network.host: "_non_loopback_"
cluster.name: "my-cluster"
elasticsearch:
volumes:
- /path/to/storage:/usr/share/elasticsearch/data
NOTE:
Beware of the unprivileged elasticsearch
user is used within the Elasticsearch image, therefore the mounted data directory must be owned by the uid 1000
.
.env
NOTE: Pay attention to the upgrade instructions for each individual component before performing a stack upgrade.