addPostaWithReferences

Method
📦 CommunityToolkit.Aspire.Hosting.Posta v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addPostaWithReferences(
name: string,
database: PostgresDatabaseResource,
redis: RedisResource,
jwtSecret?: ParameterResource,
adminPassword?: ParameterResource,
adminEmail?: string,
port?: number): PostaResource;
}

Signature

methodaddPostaWithReferencesbuilder
Adds a Posta container resource with PostgreSQL and Redis references
addPostaWithReferences(
name: string,
database: PostgresDatabaseResource,
redis: RedisResource,
jwtSecret?: ParameterResource,
adminPassword?: ParameterResource,
adminEmail?: string,
port?: number): PostaResource
namestringThe name of the Posta container resource.
databasePostgresDatabaseResourceThe PostgreSQL database resource used by Posta.
redisRedisResourceThe Redis resource used by Posta.
jwtSecretParameterResourceoptionalOptional parameter used as the Posta JWT signing secret.
adminPasswordParameterResourceoptionalOptional parameter used as the initial Posta admin password.
adminEmailstringoptional= admin@example.comThe initial Posta admin account email.
portnumberoptionalOptional host port for the Posta HTTP API and dashboard.
PostaResource

Applies to

This method applies to the following types: