This repository should demonstrate a behaviour change between docker-compose v1 and docker-compose v2.
- Execute
docker-compose -f docker-compose.yml -f subpath/docker-compose.yml --profile=foo up -d
- Let everything start
- Execute
docker-compose -f docker-compose.yml -f subpath/docker-compose.yml down
- with
docker-compose v2
: Only the service(s) without a specified profile get stopped and removed - with
docker-compose v1
: All services get stopped
docker-compose v2
should either behave the same as docker-compose v1
or this behaviour change should at least documented somewhere (at least I haven't found anything regarding this).