Answer the question
In order to leave comments, you need to log in
How to store data and manage containers in docker?
I don’t fully understand how to work with docker in production.
Let's say there are 3 physical servers and a web application that uses the following containers:
1. Load balancer (nginx)
1 piece 2. Backends (Already compiled binaries inside) 1 - n pieces
3. Database (Postgres) 1-n pieces
How easy it is to run in docker I understand, but the following things are not clear:
1. Store all changeable data, for example, pictures, ccs, js and files uploaded by users in a volume image. This image will be placed, for example, on 1 physical server, in case of its failure, how to migrate this container to another server with all the data? Exactly the same as to be with a DB? And how to backup these data containers?
2. What tool to manage all this good, so that there is fault tolerance and preferably from the web face? I tried:
-Mesosphere DC / OS (the functions I need seem to be there, but it is sharpened for a large number of nodes and a fierce enterprise)
-Docker UCP (Everything is cool, but paid)
-Rancher (In fact, open source is analogous to Docker UCP, but it seemed damp)
Answer the question
In order to leave comments, you need to log in
All mutable data like images, ccs, js
Look at OpenShift, it's a RedHat project, it only works on CentOS/RedHat, but it solves all your problems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question