Skip to content

Commit

Permalink
New release 1.0.0-rc1 (#454)
Browse files Browse the repository at this point in the history
New release 1.0.0-rc1
  • Loading branch information
skoruba authored Jan 24, 2020
2 parents 3729ca3 + a3162c3 commit be6fc55
Show file tree
Hide file tree
Showing 1,792 changed files with 169,989 additions and 5,323 deletions.
26 changes: 26 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
**/_ReSharper.Caches
LICENSE
README.md
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,6 @@ __pycache__/
# Don't ignore these log folders
!/src/Skoruba.IdentityServer4.Admin/Resources/Views/Log/
!/src/Skoruba.IdentityServer4.Admin.BusinessLogic/Dtos/Log/
!/src/Skoruba.IdentityServer4.Admin/Views/Log/
!/src/Skoruba.IdentityServer4.Admin/Views/Log/
!/src/Skoruba.IdentityServer4.Admin.BusinessLogic/Events/Log/
/src/Skoruba.IdentityServer4.Admin.Api/appsettings.Production.json
248 changes: 176 additions & 72 deletions README.md

Large diffs are not rendered by default.

56 changes: 47 additions & 9 deletions Skoruba.IdentityServer4.Admin.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28803.452
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{588205D4-3A30-4DA4-849D-C7422C396DAA}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "admin", "admin", "{588205D4-3A30-4DA4-849D-C7422C396DAA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}"
EndProject
Expand Down Expand Up @@ -33,7 +33,21 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Adm
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.Shared", "src\Skoruba.IdentityServer4.Admin.EntityFramework.Shared\Skoruba.IdentityServer4.Admin.EntityFramework.Shared.csproj", "{E18F8C70-7448-4039-9D78-1369D7F498EF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skoruba.IdentityServer4.Admin.EntityFramework.Extensions", "src\Skoruba.IdentityServer4.Admin.EntityFramework.Extensions\Skoruba.IdentityServer4.Admin.EntityFramework.Extensions.csproj", "{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.Extensions", "src\Skoruba.IdentityServer4.Admin.EntityFramework.Extensions\Skoruba.IdentityServer4.Admin.EntityFramework.Extensions.csproj", "{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}"
EndProject
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{F817047F-018D-4F93-BDA5-58602073B634}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.SqlServer", "src\Skoruba.IdentityServer4.Admin.EntityFramework.SqlServer\Skoruba.IdentityServer4.Admin.EntityFramework.SqlServer.csproj", "{8230366D-81F9-4FA5-8F5D-8546B527F54F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.PostgreSQL", "src\Skoruba.IdentityServer4.Admin.EntityFramework.PostgreSQL\Skoruba.IdentityServer4.Admin.EntityFramework.PostgreSQL.csproj", "{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "database", "database", "{2A514C8F-6A53-41CA-AB41-B644E7BC92A7}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "business", "business", "{EE588CE5-51D0-4E98-A2B3-40EC8E655931}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Skoruba.IdentityServer4.Admin.EntityFramework.MySql", "src\Skoruba.IdentityServer4.Admin.EntityFramework.MySql\Skoruba.IdentityServer4.Admin.EntityFramework.MySql.csproj", "{0A8A0DB7-0509-4DFB-9201-74398511B481}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skoruba.IdentityServer4.Admin.Api.IntegrationTests", "tests\Skoruba.IdentityServer4.Admin.Api.IntegrationTests\Skoruba.IdentityServer4.Admin.Api.IntegrationTests.csproj", "{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -93,6 +107,26 @@ Global
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A}.Release|Any CPU.Build.0 = Release|Any CPU
{F817047F-018D-4F93-BDA5-58602073B634}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F817047F-018D-4F93-BDA5-58602073B634}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F817047F-018D-4F93-BDA5-58602073B634}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F817047F-018D-4F93-BDA5-58602073B634}.Release|Any CPU.Build.0 = Release|Any CPU
{8230366D-81F9-4FA5-8F5D-8546B527F54F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8230366D-81F9-4FA5-8F5D-8546B527F54F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8230366D-81F9-4FA5-8F5D-8546B527F54F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8230366D-81F9-4FA5-8F5D-8546B527F54F}.Release|Any CPU.Build.0 = Release|Any CPU
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D}.Release|Any CPU.Build.0 = Release|Any CPU
{0A8A0DB7-0509-4DFB-9201-74398511B481}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0A8A0DB7-0509-4DFB-9201-74398511B481}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A8A0DB7-0509-4DFB-9201-74398511B481}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A8A0DB7-0509-4DFB-9201-74398511B481}.Release|Any CPU.Build.0 = Release|Any CPU
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -101,16 +135,20 @@ Global
{E3713598-3375-4E81-9EC7-58DC090789BD} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
{BFF10ECC-B02A-4660-A82B-AADFDE0C0EBF} = {0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}
{92405E00-759C-4A20-A736-E21E7EF771C2} = {0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}
{D9F5B8B1-01F5-4996-8E75-A41532CF32CD} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
{491B30A8-D4A1-42E8-8DEE-4093E0E45C36} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
{D9F5B8B1-01F5-4996-8E75-A41532CF32CD} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
{491B30A8-D4A1-42E8-8DEE-4093E0E45C36} = {EE588CE5-51D0-4E98-A2B3-40EC8E655931}
{72F17B1A-88D9-47FD-AA35-1C700E51CD0E} = {63D44665-AC4C-45F4-A2C7-A7DB394F44C4}
{2FAECDE3-8D21-4C36-BFF1-3F7C1A56F0D4} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
{C360A0D5-1671-4738-BC5D-BED0E8A24D66} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
{CA63CC7B-BE27-4737-AE91-42E43F729A1E} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
{2FAECDE3-8D21-4C36-BFF1-3F7C1A56F0D4} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
{C360A0D5-1671-4738-BC5D-BED0E8A24D66} = {EE588CE5-51D0-4E98-A2B3-40EC8E655931}
{CA63CC7B-BE27-4737-AE91-42E43F729A1E} = {EE588CE5-51D0-4E98-A2B3-40EC8E655931}
{83319150-92D2-408C-A944-52DBE6AB8B37} = {0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}
{8F112368-2E45-4C3A-922E-85AB6056F559} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
{E18F8C70-7448-4039-9D78-1369D7F498EF} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A} = {588205D4-3A30-4DA4-849D-C7422C396DAA}
{E18F8C70-7448-4039-9D78-1369D7F498EF} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
{2DD3CB7D-462E-4039-B684-81B1E88C7C6A} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
{8230366D-81F9-4FA5-8F5D-8546B527F54F} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
{3ECDC91E-0D3E-4E4D-A34E-D33BB714578D} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
{0A8A0DB7-0509-4DFB-9201-74398511B481} = {2A514C8F-6A53-41CA-AB41-B644E7BC92A7}
{4D123ACB-ACBD-4E40-AE6B-1B0F79D703B0} = {0BC0CC4E-A0F1-45E8-B41A-AE0FA76BF3E5}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B3166EDE-037B-4C68-BEBA-5DE9C5E3DB82}
Expand Down
56 changes: 56 additions & 0 deletions build/add-migrations.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
param([string] $migration = 'DbInit', [string] $migrationProviderName = 'All')
$projectName = "Skoruba.IdentityServer4";
$currentPath = Get-Location
Set-Location "../src/$projectName.Admin"
Copy-Item appsettings.json -Destination appsettings-backup.json
$settings = Get-Content appsettings.json -raw

#Initialze db context and define the target directory
$targetContexts = @{
AdminIdentityDbContext = "Migrations\Identity"
AdminLogDbContext = "Migrations\Logging";
IdentityServerConfigurationDbContext = "Migrations\IdentityServerConfiguration";
IdentityServerPersistedGrantDbContext = "Migrations\IdentityServerGrants";
AdminAuditLogDbContext = "Migrations\AuditLogging";
}

#Initialize the db providers and it's respective projects
$dpProviders = @{
SqlServer = "..\..\src\$projectName.Admin.EntityFramework.SqlServer\$projectName.Admin.EntityFramework.SqlServer.csproj";
PostgreSQL = "..\..\src\$projectName.Admin.EntityFramework.PostgreSQL\$projectName.Admin.EntityFramework.PostgreSQL.csproj";
MySql = "..\..\src\$projectName.Admin.EntityFramework.MySql\$projectName.Admin.EntityFramework.MySql.csproj";
}

#Fix issue when the tools is not installed and the nuget package does not work see https://github.com/MicrosoftDocs/azure-docs/issues/40048
Write-Host "Updating donet ef tools"
$env:Path += " % USERPROFILE % \.dotnet\tools";
dotnet tool update --global dotnet-ef --version 3.1.0

Write-Host "Start migrate projects"
foreach ($provider in $dpProviders.Keys) {

if ($migrationProviderName -eq 'All' -or $migrationProviderName -eq $provider) {

$projectPath = (Get-Item -Path $dpProviders[$provider] -Verbose).FullName;
Write-Host "Generate migration for db provider:" $provider ", for project path - " $projectPath

$providerName = '"ProviderType": "' + $provider + '"'

$settings = $settings -replace '"ProviderType".*', $providerName
$settings | set-content appsettings.json
if ((Test-Path $projectPath) -eq $true) {
foreach ($context in $targetContexts.Keys) {
$migrationPath = $targetContexts[$context];

Write-Host "Migrating context " $context
dotnet ef migrations add $migration -c $context -o $migrationPath -p $projectPath
}
}

}
}

Remove-Item appsettings.json
Copy-Item appsettings-backup.json -Destination appsettings.json
Remove-Item appsettings-backup.json
Set-Location $currentPath
12 changes: 12 additions & 0 deletions build/publish-docker-images.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# build docker images according to docker-compose
docker-compose build

# rename images with following tag
docker tag skoruba-identityserver4-admin skoruba/identityserver4-admin:rc1
docker tag skoruba-identityserver4-sts-identity skoruba/identityserver4-sts-identity:rc1
docker tag skoruba-identityserver4-admin-api skoruba/identityserver4-admin-api:rc1

# push to docker hub
docker push skoruba/identityserver4-admin:rc1
docker push skoruba/identityserver4-admin-api:rc1
docker push skoruba/identityserver4-sts-identity:rc1
21 changes: 21 additions & 0 deletions docker-compose.dcproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" Sdk="Microsoft.Docker.Sdk">
<PropertyGroup Label="Globals">
<ProjectVersion>2.1</ProjectVersion>
<DockerTargetOS>Linux</DockerTargetOS>
<ProjectGuid>f817047f-018d-4f93-bda5-58602073b634</ProjectGuid>
<DockerLaunchAction>None</DockerLaunchAction>
<DockerServiceUrl>{Scheme}://localhost:{ServicePort}</DockerServiceUrl>
<DockerServiceName>skoruba.identityserver4.admin</DockerServiceName>
</PropertyGroup>
<ItemGroup>
<None Include="docker-compose.vs.debug.yml">
<DependentUpon>docker-compose.yml</DependentUpon>
</None>
<None Include="docker-compose.override.yml">
<DependentUpon>docker-compose.yml</DependentUpon>
</None>
<None Include="docker-compose.yml" />
<None Include=".dockerignore" />
</ItemGroup>
</Project>
25 changes: 25 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: '3.4'

services:
skoruba.identityserver4.admin:
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "80"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
skoruba.identityserver4.admin.api:
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "80"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro

skoruba.identityserver4.sts.identity:
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "80"
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
16 changes: 16 additions & 0 deletions docker-compose.vs.debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.4'

services:
skoruba.identityserver4.admin:
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
labels:
com.microsoft.visualstudio.debuggee.arguments: ' --additionalProbingPath /root/.nuget/packages --additionalProbingPath /root/.nuget/fallbackpackages "bin/Debug/netcoreapp3.1/Skoruba.IdentityServer4.Admin.dll" /seed'

skoruba.identityserver4.admin.api:
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro

skoruba.identityserver4.sts.identity:
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
16 changes: 16 additions & 0 deletions docker-compose.vs.release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.4'

services:
skoruba.identityserver4.admin:
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
labels:
com.microsoft.visualstudio.debuggee.arguments: ' --additionalProbingPath /root/.nuget/packages --additionalProbingPath /root/.nuget/fallbackpackages "bin/Debug/netcoreapp3.1/Skoruba.IdentityServer4.Admin.dll" /seed'

skoruba.identityserver4.admin.api:
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro

skoruba.identityserver4.sts.identity:
volumes:
- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
98 changes: 98 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
version: '3.4'

services:
skoruba.identityserver4.admin:
image: ${DOCKER_REGISTRY-}skoruba-identityserver4-admin
ports:
- 9000:80
build:
context: .
dockerfile: src/Skoruba.IdentityServer4.Admin/Dockerfile
container_name: skoruba-identityserver4-admin
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings__ConfigurationDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__PersistedGrantDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__IdentityDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__AdminLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__AdminAuditLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "AdminConfiguration__IdentityAdminBaseUrl=http://127.0.0.1.xip.io:9000"
- "AdminConfiguration__IdentityAdminRedirectUri=http://127.0.0.1.xip.io:9000/signin-oidc"
- "AdminConfiguration__IdentityServerBaseUrl=http://127.0.0.1.xip.io"
- "AdminConfiguration__RequireHttpsMetadata=false"
- "IdentityServerData__Clients__0__ClientUri=http://127.0.0.1.xip.io:9000"
- "IdentityServerData__Clients__0__RedirectUris__0=http://127.0.0.1.xip.io:9000/signin-oidc"
- "IdentityServerData__Clients__0__FrontChannelLogoutUri=http://127.0.0.1.xip.io:9000/signin-oidc"
- "IdentityServerData__Clients__0__PostLogoutRedirectUris__0=http://127.0.0.1.xip.io:9000/signout-callback-oidc"
- "IdentityServerData__Clients__0__AllowedCorsOrigins__0=http://127.0.0.1.xip.io:9000"
- "IdentityServerData__Clients__1__RedirectUris__0=http://127.0.0.1.xip.io:5000/swagger/oauth2-redirect.html"
- "Serilog__WriteTo__1__Args__connectionString=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
command: dotnet Skoruba.IdentityServer4.Admin.dll /seed
depends_on:
- db
- skoruba.identityserver4.sts.identity
volumes:
- "./shared/serilog.json:/app/serilog.json"
- "./shared/identitydata.json:/app/identitydata.json"
- "./shared/identityserverdata.json:/app/identityserverdata.json"

skoruba.identityserver4.admin.api:
image: ${DOCKER_REGISTRY-}skoruba-identityserver4-admin-api
build:
context: .
dockerfile: src/Skoruba.IdentityServer4.Admin.Api/Dockerfile
ports:
- 5000:80
environment:
- "AdminApiConfiguration__RequireHttpsMetadata=false"
- "AdminApiConfiguration__ApiBaseUrl=http://127.0.0.1.xip.io:5000"
- "AdminApiConfiguration__IdentityServerBaseUrl=http://127.0.0.1.xip.io"
- "ConnectionStrings__ConfigurationDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__PersistedGrantDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__IdentityDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__AdminLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__AdminAuditLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
container_name: skoruba-identityserver4-admin-api
volumes:
- "./shared/serilog.json:/app/serilog.json"

skoruba.identityserver4.sts.identity:
image: ${DOCKER_REGISTRY-}skoruba-identityserver4-sts-identity
ports:
- 80:80
build:
context: .
dockerfile: src/Skoruba.IdentityServer4.STS.Identity/Dockerfile
container_name: skoruba-identityserver4-sts-identity
environment:
- ASPNETCORE_ENVIRONMENT=Development
- "ConnectionStrings__ConfigurationDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__PersistedGrantDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "ConnectionStrings__IdentityDbConnection=Server=db;Database=IdentityServer4Admin;User Id=sa;Password=${DB_PASSWORD:-Password_123};MultipleActiveResultSets=true"
- "AdminConfiguration__IdentityAdminBaseUrl=http://127.0.0.1.xip.io:9000"
depends_on:
- db
volumes:
- "./shared/serilog.json:/app/serilog.json"
networks:
default:
aliases:
- 127.0.0.1.xip.io
db:
image: "mcr.microsoft.com/mssql/server"
ports:
- 1433:1433
container_name: skoruba-identityserver4-db
environment:
SA_PASSWORD: "${DB_PASSWORD:-Password_123}"
ACCEPT_EULA: "Y"
volumes:
- dbdata:/var/opt/mssql

volumes:
dbdata:
driver: local

networks:
default:
driver: bridge
Loading

0 comments on commit be6fc55

Please sign in to comment.