I have a bootloader that starts two docker-compose projects, with a command lines:
docker-compose.sh -p a -f project1.yml up -d
docker-compose.sh -p a -f project2.yml up -d
I am using projects so the bootloader can fallback to a different project if an upgrade fails.
The up command works as expected, brining up all the containers and networks in project1.yml and project2.yml, with the containers' names prefixed with "a_".
However, when I try following command:
docker-compose.sh -p a -f project1.yml down
it brings down all containers and networks in both projects (i.e. all containers prefixed with "a_").
There is no cross-over between project1.yml and project2.yml, each creates unique containers from different images.
I cannot find any documentation regarding the use of a compose file and project in conjunction with the "down" command. Is my usage of the project and compose file correct?