add healthchecks to docker

This commit is contained in:
rootdarkarchon
2023-01-02 02:50:33 +01:00
parent 7f49ca8627
commit bdd8830c8e
9 changed files with 40 additions and 13 deletions

View File

@@ -60,6 +60,8 @@ public class Startup
// configure mare specific services
ConfigureMareServices(services, mareConfig);
services.AddHealthChecks();
}
private static void ConfigureMareServices(IServiceCollection services, IConfigurationSection mareConfig)
@@ -303,6 +305,8 @@ public class Startup
endpoints.MapGrpcService<GrpcIdentityService>().AllowAnonymous();
endpoints.MapGrpcService<GrpcConfigurationService<ServerConfiguration>>().AllowAnonymous();
}
endpoints.MapHealthChecks("/health").WithMetadata(new AllowAnonymousAttribute());
});
}
}