Skip to content

Commit

Permalink
Allow to add config.json to docker. This allows the user to make it e…
Browse files Browse the repository at this point in the history
…asier to configure the UI (#1716)
  • Loading branch information
michaelmairegger authored Jul 24, 2023
1 parent 109967b commit 078d6c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/docker-images/HealthChecks.UI.Image/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public static IHostBuilder CreateHostBuilder(string[] args)
{
builder.UseAzureAppConfiguration();
}
builder.AddJsonFile("/config/config.json", true);
})
.UseStartup<Startup>();
Expand Down
4 changes: 4 additions & 0 deletions doc/ui-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ services:
- Logging:LogLevel:HealthChecks=Debug
ports:
- 5000:80
volumes:
- config:/config
sqlserver:
image: mcr.microsoft.com/mssql/server
environment:
Expand All @@ -136,4 +138,6 @@ services:
timeout: 3s
retries: 10
start_period: 10s
volumes:
config:
```

0 comments on commit 078d6c8

Please sign in to comment.