In my experience, the Docker containerization is the best and most lightweight solution for running a predefined environment locally.
Other option (more expensive) might be to use cloud services as an remote development environment using terraforms for their quick setup and orchestration.