Skip to content

Commit

Permalink
fixed docker-compose, now the db even if not persistent gets correctl…
Browse files Browse the repository at this point in the history
…y initialized from the dacpac before starting.

now 2 instances are started to be able to test horizontal scalability
  • Loading branch information
macel94 committed Jan 11, 2024
1 parent 009df5a commit 05f1729
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/BlazorPong.Web.Components/PongComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<FluentGrid>
<FluentGridItem xs="9">
<h3>Current User: @username</h3>
<h4>Current User: @username</h4>

<FluentStack Orientation="Orientation.Vertical">

Expand Down Expand Up @@ -62,7 +62,7 @@
</FluentGridItem>

<FluentGridItem xs="3">
<h3>Rendering DateTime Stack</h3>
<h4>Rendering DateTime Stack</h4>

@if (dateTimeArray.Any())
{
Expand All @@ -78,7 +78,7 @@
</ul>
}

<h3>Updates Per Second: @UpdatesPerSecond</h3>
<h4>Updates Per Second: @UpdatesPerSecond</h4>
</FluentGridItem>
</FluentGrid>

Expand Down
30 changes: 15 additions & 15 deletions src/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
- ConnectionStrings__Redis=redis:6379
- ConnectionStrings__AzureSql=Server=azuresql;Database=pongfreesqlserver;User=sa;Password=yourStrong(!)Password;TrustServerCertificate=True
- ConnectionStrings__AzureSql=Server=azuresql;Database=Blazorpong.Database.AzureSql;User=sa;Password=yourStrong(!)Password;TrustServerCertificate=True
ports:
- "6350:8080"
# volumes:
Expand All @@ -15,19 +15,19 @@ services:
- redis
- azuresql

# blazorpong.web.server.2:
# environment:
# - ASPNETCORE_ENVIRONMENT=Development
# - ASPNETCORE_HTTP_PORTS=8080
# - ConnectionStrings__Redis=redis:6379
# - ConnectionStrings__AzureSql=Server=azuresql;Database=pongfreesqlserver;User=sa;Password=yourStrong(!)Password;TrustServerCertificate=True
# ports:
# - "6351:8080"
# # volumes:
# # - ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
# depends_on:
# - redis
# - azuresql
blazorpong.web.server.2:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
- ConnectionStrings__Redis=redis:6379
- ConnectionStrings__AzureSql=Server=azuresql;Database=Blazorpong.Database.AzureSql;User=sa;Password=yourStrong(!)Password;TrustServerCertificate=True
ports:
- "6351:8080"
# volumes:
# - ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
depends_on:
- redis
- azuresql

redis:
image: "redis:latest"
Expand All @@ -37,7 +37,7 @@ services:
azuresql:
image: "mcr.microsoft.com/azure-sql-edge:latest"
volumes:
- ./src/Blazorpong.Database.AzureSql/Snapshots:/backup
- ./Blazorpong.Database.AzureSql/Snapshots:/backup:ro
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=yourStrong(!)Password
Expand Down
10 changes: 5 additions & 5 deletions src/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ services:
build:
context: .
dockerfile: BlazorPong.Web/Server/Dockerfile
# blazorpong.web.server.2:
# image: ${DOCKER_REGISTRY-}blazorpongwebserver
# build:
# context: .
# dockerfile: BlazorPong.Web/Server/Dockerfile
blazorpong.web.server.2:
image: ${DOCKER_REGISTRY-}blazorpongwebserver
build:
context: .
dockerfile: BlazorPong.Web/Server/Dockerfile

0 comments on commit 05f1729

Please sign in to comment.