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)
Thanks for sharing! It's so convenient developing with docker and docker-compose that I can't imagine to configure everything locally again.