Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDatabase

Method
📦 CommunityToolkit.Aspire.Hosting.Zitadel v13.6.1
func (ZitadelResource) 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().

Applies to

This method applies to the following types: