To overcome the high costs and technical complexity of developing and testing IoT environments, this paper presents a Model-Driven Development approach that allows users to design, generate, and deploy complex simulations without writing code. By utilizing a domain metamodel and graphical syntax, the proposed solution automatically instantiates IoT components—such as sensors, fog, and cloud nodes—as interconnected microservices within Docker containers.