Ваш первый файл Docker Compose — запускаем .NET-приложение из нескольких сервисов | Серия видео п...
Rahul Nath
0:00 / 0:00
Ваш первый файл Docker Compose — запускаем .NET-приложение из нескольких сервисов | Серия видео п...
778 просмотров · 5 дней назад
Rahul Nath
36,6 тыс. подписчиков
778 просмотров · 5 дней назад
Applications rarely run on their own.
The API we containerized last video now saves to SQL Server, publishes a message with Rebus, and has a worker alongside it that picks that message up. That's two containers and two applications to start, each with its own flags, in the right order, to bring the application up.
In this video we put all of it in one file and start it with one command — Docker Compose.
Compose isn't a new thing to learn. Every flag from the docker run commands we already have becomes a line in compose.yaml — ports is -p, environment is -e, volumes is -v — and our own code runs from the dev Dockerfile with hot reload intact.
💡 What you'll learn in this video:
✅ compose.yaml — every docker run flag becomes a line in one file
✅ Service names — how containers find each other, and why localhost stops working
✅ The project name — container names, the default network, and what down removes
✅ depends_on with health checks — start the app only when its dependencies are ready
✅ Named volumes — data that survives docker compose down
🔗 Source code (tag v2-end) - https://github.com/rahulpnath/tilt-se...
🔗 Compose file reference - https://docs.docker.com/reference/com...
🔗 Startup order and depends_on - https://docs.docker.com/compose/how-t...
🔗 Environment variables and .env in Compose - https://docs.docker.com/compose/how-t...
🔗 Volumes - https://docs.docker.com/engine/storag...
🔗 Rebus - https://github.com/rebus-org/Rebus
Additional Watching
📹 Configuration in ASP.NET Core - • CONFIGURATION in ASP.NET Core | Getting St...
📹 Health Checks in ASP.NET Core - • HEALTH CHECKS in ASP NET Core | Getting St...
📹 Hot Reload in a Docker Container - • Hot Reload in a Docker Container — A Dev D...
📹 Write a Dockerfile for .NET - • Your First Dockerfile — Containerize a .NE...
📹 Docker 101 - Everything You Need to Get Started - • Docker 101 — Everything You Need to Get St...
📹 RabbitMQ Series - https://bit.ly/rabbitmq-net-series
📹 ASP Series - https://bit.ly/asp-net-core-series
📹 Messaging Series - https://bit.ly/dotnet-messaging
📹 AWS Series - https://bit.ly/aws-net-series
Come say hi! ✋
🌍 Blog - https://rahulpnath.com/
✉ Subscribe to my Newsletter - https://www.rahulpnath.com/subscribe
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
#docker #dotnet #containers