WSL 2 + Docker for Desktop + VS Code + Devcontainers extension allows you to create development environments that are defined by a dockerfile / docker-compose file + .devcontainer.json.
Forget about configuration as code in pure Windows, been there, it's a waste of your time.
Also I'm not 100% positive but you might need a Windows Pro license to run Docker in Windows (something something virtualization can't recall correctly)
Comments
WSL 2 + Docker for Desktop + VS Code + Devcontainers extension allows you to create development environments that are defined by a dockerfile / docker-compose file + .devcontainer.json.
Forget about configuration as code in pure Windows, been there, it's a waste of your time.
Also I'm not 100% positive but you might need a Windows Pro license to run Docker in Windows (something something virtualization can't recall correctly)