D
D
Dmitry Korolev2018-08-31 19:39:31
Nginx
Dmitry Korolev, 2018-08-31 19:39:31

How to organize hosting of several web applications on VPS through docker?

There are 3 web applications, let them be on a bundle of php-fpm + mysql + nginx + couchBD, independent of each other, each has its own MySQL database, but there is a common database (couch)
Where can I see an example of creating a docker-compose for such a project?
If I understood everything correctly, studying Google, then you need to create
nginx: 3 containers for each project (with a link to the corresponding php-fpm) + 1 container for the gateway that will send a request from outside to the desired container (link 3 NGINX'a, that apply to each project)
php-fpm: 3 containers with a link to the corresponding mysql and to a common container with cauch.
mysql: 3 containers
CouchBD: 1 container
Project files:3 containers for each of the projects
If you share best practice I will be very grateful.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2018-08-31
@ky0

Up to a certain size and load of the database, it is better to use it within the framework of one DBMS - there will be less overhead, and memory can be given out three times more, they love it.

T
TyzhSysAdmin, 2018-08-31
@POS_troi

You need to study not Google, but documentation.
What you asked is the most basic level of composition.
Well, since you don't like documentation, here's a link to the compos file https://github.com/sameersbn/docker-gitlab/blob/ma... ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question