Git Product home page Git Product logo

tr-docker-compose's Introduction

tr-docker-compose

Application

$ docker-compose build
$ docker-compose up --scale apache=2

$ curl http://localhost/
{"date":"2018-04-12","ip_address":"172.20.0.1"}
$ docker exec -ti tr_redis_1 redis-cli
127.0.0.1:6379> KEYS *
1) "PHPREDIS_SESSION:c92af47e9c39bf4a3eafb5abca573a97"
127.0.0.1:6379> GET PHPREDIS_SESSION:c92af47e9c39bf4a3eafb5abca573a97
"count|i:1;"

Elastic Stack

  1. Probably, you will need to increase vm.max_map_count limit on your host OS:
sudo sysctl -w vm.max_map_count=262144
  1. Please allow up to 2 minutes for the Elastic Stack to start. You should access Kibana via http://localhost:5601

  2. After that, you will need to create Kibana index patterns:

./es-create-index-patterns.sh
  1. Make a request to the application. After that, you should see new log entries in Kibana.

Jenkins

  1. Jenkins can be accessed via http://localhost:8080

  2. For the sake of testing, you can copy Elasticsearch index by running this command:

./es-reindex.sh access-2018.04.15 access-2018.03.10
  1. Daily job will run in between 03:00 and 03:59. However, you can change schedule in Job Configuration

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.