DEV Community

Cover image for How to run .NET app via Docker/Docker Compose in Rider IDE
Igor Shevchenko
Igor Shevchenko

Posted on

How to run .NET app via Docker/Docker Compose in Rider IDE

Many .NET developers still face challenges when it comes to running their projects using Docker and Docker Compose.

In this tutorial, we'll work with a simple .NET API. I'll walk you step-by-step through:

  • adding a Dockerfile to your .NET project;
  • fixing common issues like EF Core failing to connect to the database inside Docker;
  • configuring Rider to run the app with Docker networks and environment variables;
  • setting up Docker Compose to run both the API and PostgreSQL together;
  • ensuring Rider rebuilds images automatically when you change your code;
  • share some helpful tips and tricks to ensure your project runs smoothly with Docker.

Watch the full tutorial here:

Top comments (1)

Collapse
 
juliashevchenko profile image
Julia Shevchenko

Thanks for sharing! It's so convenient developing with docker and docker-compose that I can't imagine to configure everything locally again.