Docker Swarm - Deploying a Stack with a Shared Host Code Base

I have a question related to best practices for deploying a docker-based production application.

To simplify the discussion related to this question / question, consider the following scenario: enter image description here

Our swarm contains:

  • 6 servers (different hosts)
  • on each of these servers, we will have one service
  • Each service will have only one dock / replica job.
  • Memcached1 and Memcached2 use public images from the docker hub
  • "Recycle data 1" and "Recycle data 2" use a custom image from a private repository
  • "Client 1" and "Client 2" use a custom image from a private repository

, , , 6 , 6 . 2 memcached, 4 - , memcached. " 1" " 2" memcached - . "Recycle data 1" "Recycle data 2" memcached - . .

, memcached, , . github ( ). :

  • , , .
  • , , .

, , 1. , , , , 99 % , , , . , , ( , ).

№ 2. . , ? :

  • , , ?
  • , , (, ), ? ( 4 , )
  • , docker-compose.yml?
+4
1

3 , :


1: , "" . , ( , ), . , , .

, , 99% , ( - , bash ).


2: , . , "" ( ) " ".

, ( ) (, , , ). , . .

, , .

3 , (failover), -. .

+3

Source: https://habr.com/ru/post/1686899/


All Articles