Giter Site home page Giter Site logo

tfm's Introduction

TFM

Configuration

Create the VM

Created a virtual machine with IP 192.168.1.107 and installed ubuntu server 18.10, then updated the repos:

sudo apt-get update
sudo apt-get upgrade

Configure Docker

Add docker repository:

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"

Update the the repository information, install and init docker:

sudo apt-get update
sudo apt-get install -y docker-ce
systemctl start docker
systemctl enable docker
sudo usermod -a -G docker $USER

Now you have to reboot the system to apply the privileges change.

Install Docker-Compose

We can install docker compose directly from ubuntu repository, but it is not the latest version. Though this command, you can install the latest version.

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Configure Portainer

Create a folder to store portainer data:

mkdir $HOME/data
sudo chmod -R 777 $HOME/data
docker volume create portainer_data

Deploy portainer:

docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/home/ubuntu/data portainer/portainer

Go to the web interaface, create the user, and connect to the local docker instance.

Deploy ELK Stack

Due to the version at the current portainer docker (1.22.2), and the docker-compose it has installed, we should launch the ELK Stack from console. SSH to the Docker host, clone this repo, and run:

cd /path.to.repo/TFM/elk
docker-compose up -d

We can monitor the status of the ELK containers at portainer.

Deploy service containers

Deployed a nginx container just to generate logs and test

tfm's People

Contributors

proyecto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.