D
D
Denis Goltsev2016-04-05 21:28:19
linux
Denis Goltsev, 2016-04-05 21:28:19

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!
28b944a9258a43b698d43c96f5fb5b14.png

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexey3a, 2016-04-06
@Aleksey3a

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/

D
Denis Goltsev, 2016-04-06
@SqIdWaRd

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.

A
Alexander, 2016-04-07
@scmrus

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.

K
KkJ, 2016-04-07
@KkJ

Kubernetes, Swarm, Nomad, Cocaine.

S
sevmax, 2016-04-14
@sevmax

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.

S
spotifi, 2016-05-30
@spotifi

Rancher (not to be confused with Rancher OS), Apache Mesos+framework, Yandex Cocaine, Kubernetes, Helios.....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question