This docker-compose builds the elastic stack 5.4.2
Uses self signed certificate (so you need to click through the warning) and the following username and password
username: test password: test
To change the username and password
sudo apt-get install apache2-utils
htpasswd -c ./app.htpasswd <newusername>
This stack assumes that you have got docker and docker-compose installed.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Elastic will not boot up with out a increased max_map_count even in containers - so need to run the below on your host machine -->
sysctl -w vm.max_map_count=262144
Go here for Kibana access--> https:///
Go here for direct elasticseach access--> https:///search/