diff --git a/build/docker-images/HealthChecks.UI.Image/Program.cs b/build/docker-images/HealthChecks.UI.Image/Program.cs index f3d12a4f04..06ac992a18 100644 --- a/build/docker-images/HealthChecks.UI.Image/Program.cs +++ b/build/docker-images/HealthChecks.UI.Image/Program.cs @@ -23,6 +23,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) { builder.UseAzureAppConfiguration(); } + builder.AddJsonFile("/config/config.json", true); }) .UseStartup(); diff --git a/doc/ui-docker.md b/doc/ui-docker.md index c163cb9a42..fb830fc32c 100644 --- a/doc/ui-docker.md +++ b/doc/ui-docker.md @@ -123,6 +123,8 @@ services: - Logging:LogLevel:HealthChecks=Debug ports: - 5000:80 + volumes: + - config:/config sqlserver: image: mcr.microsoft.com/mssql/server environment: @@ -136,4 +138,6 @@ services: timeout: 3s retries: 10 start_period: 10s +volumes: + config: ```