adubeniuk / vgs-docker Goto Github PK
View Code? Open in Web Editor NEWvgs trial task docker
License: BSD 2-Clause "Simplified" License
vgs trial task docker
License: BSD 2-Clause "Simplified" License
As there's no limit to perfection there are few thigns here which could be improved.
use Ansible to generate rsyslog and nginx configs from jinja2 templates
this will make the configs highly customizable and easily managed
use Ansible dynamic inventory and Ansible docker module instead of docker-compose to run (and scale) the containers
https://divhide.com/2016/05/10/using-a-docker-connection-with-ansible/
use Docker Machine to provision on multiple Docker hosts via various cloud drivers such as AWS, GCP or DigitalOcean
this will allow to make this setup really production ready and be able to test that on a local machine with VirtualBox as one of the supported drivers
and last but not least
There could be multiple ways to get the logs from nginx to the logging agent in the container environment.
As this is quite an important decision I would like to describe some of the available options:
First option is the easiest to implement but it could also have the worst consequences.
By its design nginx will simply freeze when unable to write its logs in this case over syslog.
Second option seems rational as it will also allow us to get the logs from the Docker host itself.
Also it allows us to change logging driver from syslog to any other supported logging driver including fluentd.
However none of these two options require separate logging container.
Indeed we could forward the logs directly to the centralized logging server either from the nginx or the Docker host itself eliminating the need for an auxiliary logging container.
But as the separate logging agent is strictly required by the task I will proceed with the dedicated logging container option and storing nginx logs on a docker data volume.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.