From 078d6c83ed771b3c7f7269fea07ecbf4d507feac Mon Sep 17 00:00:00 2001 From: Michael Mairegger Date: Mon, 24 Jul 2023 22:49:21 +0200 Subject: [PATCH] Allow to add config.json to docker. This allows the user to make it easier to configure the UI (#1716) --- build/docker-images/HealthChecks.UI.Image/Program.cs | 1 + doc/ui-docker.md | 4 ++++ 2 files changed, 5 insertions(+) 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: ```