I guess I don’t understand the conception behind the docker compose. I made independent compose-[…].yaml files for independent conatiner managing (docker compose -f …yaml up) but when I’d like to stop the given conatiner, many others are stopped as well I dont understand why
Thanks for your any help!
This is the reason: https://docs.docker.com/compose/reference/#use--p-to-specify-a-project-name
You made the assumption that a compose project, and all the resources it manages, is identified by the compose file you specified, but it is not the case. Furthermore, the folder name will be used as project name, if no project name is provided.
Either set the project name when you use docker compose (on every command!), or organize your compose files in different folders. There is no alternative other than that.