How to run a docker compose file from .Net Aspire. #4375
Replies: 2 comments 17 replies
-
.NET Aspire's orchestration replaces docker compose, so you don't run docker compose from aspire. |
Beta Was this translation helpful? Give feedback.
-
+1 for this feature My primary use case for Aspire is to run it locally as a single orchestration point for container management, benefiting from features like the dashboard, OTEL metrics collection, and debugging. In our setup, we use GitLab CI along with a suite of integration tests that require infrastructure components (PostgreSQL, Kafka, Redis, etc). To manage container lifetimes (e.g., for testing migrations or running performance tests), we currently rely on docker compose (so you can run for example just a postgres container and do stuff with it) We end up maintaining two separate configurations that need to stay in sync. Managing these configurations is tedious and error-prone, and simplifying this process would be a significant productivity boost. It feels more natural for Aspire to integrate directly with docker compose (like the way it allows to use raw dockerfiles), allowing developers to maintain a single configuration file |
Beta Was this translation helpful? Give feedback.
-
I have multiple services that require a Docker Compose file to be run before starting. I have added a .NET Aspire application to manage all the services, but now I cannot run the Docker Compose file from the .NET Aspire application. Is there any way to run Docker Compose from .NET Aspire?
Beta Was this translation helpful? Give feedback.
All reactions