Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ZitadelResource.WithDatabase

Method
📦 CommunityToolkit.Aspire.Hosting.Zitadel v13.6.1
type ZitadelResource interface {
// ... omitted for brevity
WithDatabase(
server PostgresServerResource,
options ...*WithDatabaseOptions,
) ZitadelResource
}

Signature

methodWithDatabasebuilder
Adds database support to the Zitadel resource.
WithDatabase(
server PostgresServerResource,
options ...*WithDatabaseOptions,
) ZitadelResource
serverPostgresServerResourceThe Postgres server resource to use for the database.
options...*WithDatabaseOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDatabaseOptions argument.

DatabaseName*stringAn optional name for the database Zitadel will use, if left empty will default to "zitadel-db".
ZitadelResource

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: