Skip to content

esenciadev/Essentials.AspNetCore.Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AspNetCore.Configuration.Docker

Docker configuration provider for Asp.net Core projects. At this time, it has a docker secrets provider only, with a docker config provider in the works.

How to use

In Program.cs call AddDockerSecrets() during webhost construction, like so:

public static IWebHostBuilder CreateWebHostBuilder(string[] args)
{
    WebHost.CreateDefaultBuilder(args)
           .AddDockerSecrets(false)
           .UseStartup<Startup>();
}   

If you only want to use Docker secrets in production, so that you can debug locally, call .AddDockerSecretsExceptInDevelopment() instead.

About

Docker essentials for any asp.net core project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages