Giter Site home page Giter Site logo

docker_elasticsearch_grafana's Introduction

Reference

Setting up local environment using Docker

  1. Go to http://docker.com and install the software
  2. Place the docker-compose.yaml file in a folder in your drive
  3. Go to this folder in your terminal (mac) or cmd on windows
  4. Create the folder data/elastic and data/grafana in the same folder where the docker-compose.yml is
  5. Execute this command docker-compose up -d
  6. wait for everything to download and then access : http://localhost:3000 . Grafana default credentials are admin/admin
  7. Elastic Search will be available at http://localhost:9200

After you finish your days os work, or you just want to stop the running containers:

  • To Stop all containers: docker stop $(docker ps -a -q)

After you finish the project and you just want to delete the containers and its data:

  • To remove all containers and its data (be careful): docker-compose down --volumes

Notes (docker)

After you make the changes to the docker-compose file you'll have to compile it again: docker-compose up -d --build

##Running commands inside the container

  • docker exec -it <container_id_or_name> echo "I'm inside the container!"
  • docker exec -it grafana ls

How to find the internal network IP of the Elastic Search instance so you can connect with grafana

  • docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' es01 You will need this when connecting Grafana to Elastic Search

docker_elasticsearch_grafana's People

Contributors

andrekgb avatar

Watchers

James Cloos avatar  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.