.NET Aspire provides an easy and simple way to orchestrate containers without using docker network
or docker compose
. It even provides a way to deploy all the apps to a Kubernetes cluster.
# Bazh/Zshs
REPOSITORY_ROOT=$(git rev-parse --show-toplevel)
# PowerShell
$REPOSITORY_ROOT = git rev-parse --show-toplevel
-
Make sure you have been running Docker Desktop. If not, start Docker Desktop.
-
Move to the
aspire
directory.cd $REPOSITORY_ROOT/aspire
-
Run the following command to let .NET Aspire orchestrate all apps at once.
dotnet watch run --project ./src/eShopLite.AppHost
-
Checkout the dashboard.
-
Open the browser and navigate to
http://localhost:5000
to see the app running.
-
Make sure you have been running Docker Desktop and enabled Kubernetes. If not, start Docker Desktop and Kubernetes.
-
Move to the
aspire
directory.cd $REPOSITORY_ROOT/aspire
-
Follow the instructions in order: