With the latest Visual Studio update, the Docker Compose tooling got improved and it is not possible to create a launch profile to run any combination of services defined in your compose files. Before you only had once launch profile and you couldn’t choose what services to start.
Let’s find out how to use this new feature:
- Right-click on you docker-compose project and select Manage Docker Compose Launch Settings
- The tooling will scan through all Compose files to find all services. Once the scanning is completed you can choose which services to launch
- Create a new profile by clicking New… and specify a name
- Now we can configure which services to launch for this profile. Also choose the Launch Service name and action. Once you are done , click OK
- A new launch profile is created and available to use