Where should I put docker-compose.yml

When I pull out the images from the docker hub. Sometimes I would like to run images with multiple containers. Therefore, I prefer to use docker-compose. For example, I started zookeeper in replicated mode . I will be a new file called docker-compose.yml and run docker-compose and wait for it to fully initialize.

My question is, what is the correct directory, should I put the docker-compose.yml file in?

+4
source share
1 answer

I ask myself the same question: where to place my docker-compose.ymlfile?

:

  • docker-compose.yml ( ).
  • Docker ( ).

?

  • docker-compose.yml ( ) .
  • .
  • ( ) docker-compose.yml ( ).

, , . , (, mariadb ), .

+2

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


All Articles