K
K
kiranananda2018-10-02 17:28:33
Docker
kiranananda, 2018-10-02 17:28:33

Mysql, nginx, php in Docker?

Hello!
I became interested in the docker here in earnest. And right now the project is turning up a site with a high load. Here I think to muddy everything on the docker. I remember earlier there were cells in freebsd, I really liked it :).
I think to connect the data for sites and the muscle database through volumes . Who really used tell me if everything is in order? And then I read negativity on the internet, now I’m thinking ...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
stul5tul, 2018-10-03
@kiranananda

And right now the project is turning up a site with a high load. Here I think to muddy everything on the docker.

Unrelated things - Docker and high load sites. They are parallel.
Server clusters are used for high load, and in these clusters the software is often divided into small parts - microservices. Cluster management software is used to manage clusters with microservices.
Such software: from the universal, but cumbersome, I recommend Kubernetes, from the simpler, but quite functional, I recommend Flynn.io. Docker-compose is good for development to simulate behavior in a cluster, but using docker-compose in production to implement a cluster is to be an evil Pinocchio to yourself.
In this cluster management software to simplify development / operation, to guarantee an identical execution environment and is used at one of the low levels - Docker, as a rule.
That is, Docker by itself does not solve the problem of high-load sites. It is just one of the basic building blocks of isolation . Insulation != high loads.
They still haven't gone anywhere. And they are developing.
==============================
Doing the whole system manually on Docker is useless.
Organize a fault-tolerant distributed cluster that scales across a large number of servers, monitor the health of this cluster, restart after failures, etc. - it's a huge job.
In this field, entire specialized offices have been tied up to create / maintain software for these clusters. And they've been sawing their systems for years.
On the knee - do not stir up a full-fledged system.
Just take this software and work with it.
And yes, it will be based on Docker, but it will not be bare Docker.
For beginners, I recommend a fairly easy to understand (like Heroku), but at the same time a powerful system that allows you to make a full-fledged cluster - Flynn.io.
I believe that most of your questions are already described in the documentation for this system.
And without a cluster, it's not a highly loaded system. Yes, and Docker is needed there insofar as. If you have one or two servers, then it is quite possible to get by with Vagrant on the developer's machine to simulate the server runtime environment.

O
OnYourLips, 2018-10-03
@OnYourLips

Why shove the subd and data into the docker? Good practice is stateless containers.
Connect the database and file storage as external services.

A
Alexander, 2018-10-02
@UPSA

Docker is an interesting thing. It's worth doing.
1. Read. .... link . Cloning something does not work))).
2. Once there was a problem with docker backup... if there is a DBMS. Moreover, there was a clean dev, to see how it works, I will spoil something, I will quickly return it. Did not work out ))). It is necessary to completely stop the docker and then make a backup copy. But it was a long time ago.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question