Skip to content

Deploying and Running

Josh Rickard edited this page Nov 9, 2020 · 1 revision

Deploying and Running elk-tls-docker

In order to deploy and run elk-tls-docker you need to clone or copy the entire repository to your system(s).

Environment Prerequisites

In order to run elk-tls-docker you will need a few pieces of software to be installed:

  • Docker
  • docker-compose
  • git

First you should make sure your system is update to date and then you can install all the prerequisities by copying this and running it on your Ubuntu host:

# updating packages
sudo apt-get update
# removing old versions of docker
sudo apt-get remove docker docker-engine docker.io containerd runc
# allowing apt to update over HTTPS
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# add Docker's GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# add repository to apt-get
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

# install docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io git

# installing docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# apply executable permissions to the docker-compose binary
sudo chmod +x /usr/local/bin/docker-compose

Install via Git

You can clone the repository directly by running the following command:

git clone https://github.com/swimlane/elk-tls-docker.git /opt/elk-tls-docker
cd /opt/elk-tls-docker

Copy Repo to System

If you do not want to clone the repository from the inteded system then you can use scp to copy the repo from your local system to the intended system using the following command:

scp -r ./elk-tls-docker root@{YOUR_DESTINATION_IP}:/opt/elk-tls-docker/