PostgreSqlContainerDefinition Class

A ContainerDefinition pre-configured for PostgreSQL. Create one with ContainerDefinition.CreatePostgreSql.

public sealed class PostgreSqlContainerDefinition : ContainerDefinition
Inheritance
ContainerDefinition PostgreSqlContainerDefinition

Properties

NameDescription
PasswordGets or sets the password of the PostgreSQL superuser. Setting this value updates POSTGRES_PASSWORD in ContainerDefinition.Environment.

Gets or sets the password of the PostgreSQL superuser. Setting this value updates POSTGRES_PASSWORD in ContainerDefinition.Environment.

public string Password { get; set; }

Property value

string

Methods

NameDescription
CreateContainer()Creates a PostgreSqlContainer from a deep copy of this definition.

Creates a PostgreSqlContainer from a deep copy of this definition.

public override PostgreSqlContainer CreateContainer()

Returns

PostgreSqlContainer A new PostgreSQL container.