Skip to content

Repository files navigation

ServiceDiscovery.Nomad

Simple service discovery for .NET Aspire and Hashicorp Nomad

Usage

Add package ServiceDiscovery.Nomad to your Aspire ServiceDefaults project.

dotnet add package ServiceDiscovery.Nomad

In your Aspire ServiceDefaults project, replace the following:

~~builder.Services.AddServiceDiscovery();~~

with

builder.Services.AddNomadServiceDiscovery();

and you're good to go.

How it works

ServiceDiscovery.Nomad uses the Nomad environment variables NOMAD_ADDR_* to connect to the correct service. Simple, right?

About

Simple service discovery for .NET Aspire and Hashicorp Nomad

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages