https://github.com/shimizukawa/fig-practices
fig practices
https://github.com/shimizukawa/fig-practices
Last synced: 4 months ago
JSON representation
fig practices
- Host: GitHub
- URL: https://github.com/shimizukawa/fig-practices
- Owner: shimizukawa
- Created: 2015-02-02T23:46:13.000Z (over 10 years ago)
- Default Branch: fig-app-nginx-fluentd-es-kibana4
- Last Pushed: 2015-02-07T14:24:28.000Z (over 10 years ago)
- Last Synced: 2025-01-25T15:24:46.739Z (6 months ago)
- Language: Python
- Size: 169 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
================================================================================
fig practice: Python FlaskApp + Nginx + Fluentd + ElasticSearch + Kibana4 Beta3
================================================================================Bootstrap
==========1. install vagrant + virtualbox.
2. execute::local $ vagrant up # provisioner make docker environment
local $ vagrant ssh
ubuntu $ sudo su
ubuntu # cd /vagrant
ubuntu # fig up3. browse to:
- http://192.168.10.10/ to see FlaskApp view
- http://192.168.10.10:5601/ to see Kibana4 viewUsed containers
===============- `python:2.7`_:
to execute FlaskApp- `redis:2`_:
KeyValue storage for FlaskApp- `nginx:latest`_:
Web frontend for FlaskApp and Kibana4- `shimizukawa/fluentd:latest`_:
simple fluentd to collect nginx log and transfer it to elasticsearch.- `devdb/kibana:latest`_:
Kibana4 beta3 with ElasticSearch.. _python:2.7: https://registry.hub.docker.com/_/python/
.. _redis:2: https://registry.hub.docker.com/_/redis/
.. _nginx:latest: https://registry.hub.docker.com/_/nginx/
.. _shimizukawa/fluentd:latest: https://registry.hub.docker.com/u/shimizukawa/fluentd/
.. _devdb/kibana:latest: https://registry.hub.docker.com/devdb/kibanaContainer Structures
====================Browser access flow::
Browser
|
|
v
Nginx ----> FlaskApp ---> Redis
\
\
\
------------------\
\
\
fluentd kibana4
elasticsearchLog data flow::
Nginx FlaskApp Redis
|
|access.log
|
|
v (fluentd-elasticsearch-plugin)
fluentd -------------------------> elasticsearch
kibana4