Skip to content
Docs Try Aspire
Docs Try

DocumentDBPostgresVersion

Enum net10.0
📦 Aspire.Hosting.DocumentDB v0.111.0
Selects which PostgreSQL major version of the documentdb-local container image to use.
namespace Aspire.Hosting.ApplicationModel;
public enum DocumentDBPostgresVersion
Upstream publishes the same DocumentDB version against multiple PostgreSQL backend versions. Use with DocumentDBBuilderExtensions.WithPostgresVersion to select a non-default backend. Adding new variants (for example Pg18) is intentionally a manual code change that requires review.
Pg15 = 15
PostgreSQL 15 backend (pg15- tag prefix).
Pg16 = 16
PostgreSQL 16 backend (pg16- tag prefix).
Pg17 = 17
PostgreSQL 17 backend (pg17- tag prefix). Default.