Answer the question
In order to leave comments, you need to log in
How to organize infrastructure using Docker?
Hello! I want to deal with the docker, namely how to build my own structure with the possibility of scalability.
I attached a diagram as I see it, but the question remains with the files, how correctly they should be replicated between nginx containers. Should they be taken from the host machine, or is it better to make an image with files inside. Or 1 more container is created from which you can mount a folder on both containers.
And a small off-topic question, what is CoreOS or MesOS and why is it? Thank you!
Answer the question
In order to leave comments, you need to log in
CoreOS is a Linux-based operating system for building easily and flexibly scalable clusters. CoreOS is a minimalist distribution. The installation ISO image is only 136MB in size, and in the memory on the final machine after installation and launch, it will take only 114MB. CoreOS is based on ChromeOS, which in turn is based on Gentoo.
https://habrahabr.ru/post/244585/
After some searching, I found only one solution that I think is the most adequate. The first container takes files from the host machine, the second one connects the files mounted to the first one, as I understand it, it actually reads the files from the host. But alas, this is all within the same host (if it is not a cluster).
The second is, in principle, the most standard rsync or a little cooler than btsync.
If you want beautifully, then I personally like the scheme through consul.
Here it is well described in the video: https://www.joyent.com/blog/dynamic-nginx-upstream...
The technologies are slightly different, but the essence does not change.
Denis Goltsev
We are now trying the solution on mesos + marathon. The solution differs from the usual approach, since it itself scatters containers around the cluster and determines where and what will work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question