Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"MinIOS3ConnectionString__ContaboSample": "Endpoint=https://eu2.contabostorage.com;BucketName=files;Region=eu2;AccessKey=XXX;SecretKey=XXX;",
"MinIOS3ConnectionString__HetznerSample": "Endpoint=https://hel1.your-objectstorage.com;BucketName=files;Region=eu-central;AccessKey=XXX;SecretKey=XXX;",
"MinIOS3ConnectionString__DigitalOceanSample": "Endpoint=https://ams3.digitaloceanspaces.com;BucketName=myBucketName;Region=ams3;AccessKey=XXX;SecretKey=XXX;",
"MinIOS3ConnectionString__CloudflareR2Sample": "Not supported yet: https://github.com/robinrodricks/FluentStorage/issues/114",
//#endif
"ConnectionStrings_Comment": "The ConnectionStrings section contains database connection strings used by the application."
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static void AddAspireDashboard(this IDistributedApplicationBuilder builde
if (builder.ExecutionContext.IsPublishMode)
{
// The name aspire-dashboard is special cased and excluded from the default
var dashboard = builder.AddContainer("dashboard", "mcr.microsoft.com/dotnet/aspire-dashboard:9.0")
var dashboard = builder.AddContainer("dashboard", "mcr.microsoft.com/dotnet/aspire-dashboard:9.3")
.WithHttpEndpoint(targetPort: 18888)
.WithHttpEndpoint(name: "otlp", targetPort: 18889);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,29 @@

var builder = DistributedApplication.CreateBuilder(args);

// Check out appsettings.json for credential settings.

//#if (database == "SqlServer")
var sqlDatabase = builder.AddSqlServer("sqlserver")
var sqlServerPassword = builder.AddParameter("SqlServerPassword", secret: true);
var sqlDatabase = builder.AddSqlServer("sqlserver", password: sqlServerPassword)
.WithDbGate(config => config.WithLifetime(ContainerLifetime.Persistent).WithDataVolume())
.WithLifetime(ContainerLifetime.Persistent)
.WithDataVolume()
.WithImage("mssql/server", "2025-latest")
.AddDatabase("sqldb"); // Sql server 2025 supports embedded vector search.

//#elif (database == "PostgreSql")
var postgresDatabase = builder.AddPostgres("postgresserver")
var postgresPassword = builder.AddParameter("PostgresPassword", secret: true);
var postgresDatabase = builder.AddPostgres("postgresserver", password: postgresPassword)
.WithPgAdmin(config => config.WithLifetime(ContainerLifetime.Persistent).WithVolume("/var/lib/pgadmin/Boilerplate/data"))
.WithLifetime(ContainerLifetime.Persistent)
.WithDataVolume()
.WithImage("pgvector/pgvector", "pg17") // pgvector supports embedded vector search.
.AddDatabase("postgresdb");

//#elif (database == "MySql")

var mySqlDatabase = builder.AddMySql("mysqlserver")
var mySqlPassword = builder.AddParameter("MySqlPassword", secret: true);
var mySqlDatabase = builder.AddMySql("mysqlserver", password: mySqlPassword)
.WithPhpMyAdmin(config => config.WithLifetime(ContainerLifetime.Persistent).WithVolume("/var/lib/phpMyAdmin/Boilerplate/data"))
.WithLifetime(ContainerLifetime.Persistent)
.WithDataVolume()
Expand All @@ -41,9 +45,9 @@
.AddBlobs("blobs");

//#elif (filesStorage == "S3")
var username = builder.AddParameter("user", "minioadmin");
var password = builder.AddParameter("password", "minioadmin", secret: true);
var s3Storage = builder.AddMinioContainer("minio", rootUser: username, rootPassword: password);
var minioUsername = builder.AddParameter("MinIOUser");
var minioPassword = builder.AddParameter("MinIOPassword", secret: true);
var s3Storage = builder.AddMinioContainer("minio", rootUser: minioUsername, rootPassword: minioPassword);
//#endif

var serverWebProject = builder.AddProject<Boilerplate_Server_Web>("serverweb") // Replace . with _ if needed to ensure the project builds successfully.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@
"Microsoft.AspNetCore": "Warning",
"Aspire.Hosting.Dcp": "Warning"
}
},
"Parameters": {
"MinIOUser": "minioadmin",
"MinIOPassword": "minioadmin",
"PostgresPassword": "AN|w$&n1l4oh",
"SqlServerPassword": "Qjs|@&B1'u-K",
"MySqlPassword": ">f_G[zD`l|i8"
}
}
Loading