I’m migrating from compose v1 to v2 and I noticed that
.env now seems to take precedence over
--profile on the command line.
Is this intentional? If yes then it makes my setup more awkward to use:
- all services are in profile
- with v1, users can choose another subset of services via
docker-compose --profile x ...
- with v2, I now have to use
COMPOSE_PROFILES=x docker compose ...as
--profiledoesn’t work anymore (until I remove
Version is 2.10.2, as per latest Docker Desktop for Windows (actual usage is within WSL2).