Composer installed Mautic on docker

For composer installed Mautic on docker …

Does it mean we need to create a docker with the OS, bins, libraries and composer 2 with volume for database and www folder then run the docker to run composer install mautic in within the docker??