mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(dir): ✨ model directory db
This commit is contained in:
parent
1a6563b031
commit
b4e658246c
2 changed files with 7 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="Aspire.Hosting.AppHost" Version="8.0.1"/>
|
||||
<PackageReference Include="Aspire.Hosting.Azure.ApplicationInsights" Version="8.0.1"/>
|
||||
<PackageReference Include="Aspire.Hosting.SqlServer" Version="8.0.1"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,13 @@
|
|||
|
||||
var appInsights = builder.AddAzureApplicationInsights("appinsights");
|
||||
|
||||
// TODO: use separate users (db_ddladmin only for migrations) https://stackoverflow.com/q/78564037/2343739
|
||||
var directoryDb = builder.AddSqlServer("directorysqlserver")
|
||||
.PublishAsConnectionString() // customized for free tier, don't trust Aspire to provision db
|
||||
.AddDatabase("directorydb");
|
||||
|
||||
var directoryApi = builder.AddProject<FilterLists_Directory_Api>("directoryapi")
|
||||
.WithReference(directoryDb)
|
||||
.WithReference(appInsights);
|
||||
|
||||
builder.AddProject<FilterLists_Web>("web")
|
||||
|
|
|
|||
Loading…
Reference in a new issue