Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddPostaWithReferences

Method
📦 CommunityToolkit.Aspire.Hosting.Posta v13.6.1
func (DistributedApplicationBuilder) AddPostaWithReferences(
name string,
database PostgresDatabaseResource,
redis RedisResource,
options ...*AddPostaWithReferencesOptions,
) PostaResource

Signature

methodAddPostaWithReferencesbuilder
Adds a Posta container resource with PostgreSQL and Redis references
AddPostaWithReferences(
name string,
database PostgresDatabaseResource,
redis RedisResource,
options ...*AddPostaWithReferencesOptions,
) PostaResource
namestringThe name of the Posta container resource.
databasePostgresDatabaseResourceThe PostgreSQL database resource used by Posta.
redisRedisResourceThe Redis resource used by Posta.
options...*AddPostaWithReferencesOptionsOptional settings, described under Options.

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

JwtSecret*ParameterResourceOptional parameter used as the Posta JWT signing secret.
AdminPassword*ParameterResourceOptional parameter used as the initial Posta admin password.
AdminEmail*stringThe initial Posta admin account email.
Port*float64Optional host port for the Posta HTTP API and dashboard.
PostaResource

A reference to the IResourceBuilder for further resource configuration.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder