Hello,
I am a beginnner using Docker and Docker-compose.
I have several different projects, in different folders, each one with his own docker-compose.yml and each one with two or more containers.
The projects are completely unrelated. However when I type docker-compose up all the containers of all projects are started. Why? How can I run only the containers of one project?
Just for the records, I finally found out how to reproduce the error and why. All my projects contained a folder “Compose” containing docker-compose.yml. So, docker-compose recognises all projects as the same project “Compose”.
That’s to be expected. The project name is what seperates the deployments. If no project name is provided (e.g. --project-name myproject1), the foldername will be used as the project name.
-p, --project-name NAME Specify an alternate project name
(default: directory name)