Docker, Virtual Machine, Vmware, Kubernetes, Docker Compose.
should be the option of choice. Especially if a requirement is to run multiple applications on the same machine. Finally, both are valid solutions, but the requirements must be well known before making the choice. Regardless of your choice, be sure to research the capabilities of each based on your