CommunityToolkit.Aspire.Hosting.Listmonk
13.6.1
Prefix Reserved
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.Listmonk --version 13.6.1
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Listmonk -Version 13.6.1
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Listmonk" Version="13.6.1" />
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Listmonk" Version="13.6.1" />
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Listmonk" />
paket add CommunityToolkit.Aspire.Hosting.Listmonk --version 13.6.1
#r "nuget: CommunityToolkit.Aspire.Hosting.Listmonk, 13.6.1"
#:package CommunityToolkit.Aspire.Hosting.Listmonk@13.6.1
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.Listmonk&version=13.6.1
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Listmonk&version=13.6.1
listmonk hosting integration
Use this integration to model, configure, and orchestrate a listmonk newsletter and mailing list manager in an Aspire AppHost. The integration runs listmonk in a container and configures it to use a PostgreSQL database resource.
Getting started
Install the package in your AppHost project:
aspire add CommunityToolkit.Aspire.Hosting.Listmonk
Usage example
var builder = DistributedApplication.CreateBuilder(args);
var adminPassword = builder.AddParameter("listmonk-admin-password", secret: true);
var database = builder.AddPostgres("postgres")
.AddDatabase("listmonkdb");
var listmonk = builder.AddListmonk("listmonk")
.WithReference(database)
.WithAdminCredentials("admin", adminPassword)
.WithTimeZone("Etc/UTC")
.WithUploadsVolume();
builder.AddProject<Projects.Api>("api")
.WithReference(listmonk);
builder.Build().Run();
Connection Properties
The ListmonkResource exposes the following connection properties:
| Name | Format |
|---|---|
Host |
The listmonk host name |
Port |
The listmonk HTTP port |
Uri |
http://{host}:{port} |
Connection properties become environment variables when referenced, for example LISTMONK_URI.
Configuration
The integration exposes listmonk's container configuration environment variables as fluent methods:
| Method | Environment variable |
|---|---|
WithAppAddress |
LISTMONK_app__address |
WithReference |
LISTMONK_db__host, LISTMONK_db__port, LISTMONK_db__user, LISTMONK_db__password, LISTMONK_db__database, LISTMONK_db__ssl_mode |
WithDatabaseSslMode |
LISTMONK_db__ssl_mode |
WithDatabaseMaxOpenConnections |
LISTMONK_db__max_open |
WithDatabaseMaxIdleConnections |
LISTMONK_db__max_idle |
WithDatabaseMaxLifetime |
LISTMONK_db__max_lifetime |
WithDatabaseParameters |
LISTMONK_db__params |
WithTimeZone |
TZ |
WithAdminUser, WithAdminPassword, WithAdminCredentials |
LISTMONK_ADMIN_USER, LISTMONK_ADMIN_PASSWORD |
WithUserId, WithGroupId |
PUID, PGID |
The admin credentials are only used by listmonk during first database setup.
listmonk's container entrypoint also supports LISTMONK_*_FILE variables for Docker or Podman secret files. Prefer Aspire parameters for secrets in AppHost code; if a deployment requires file-based secret paths, configure those specific variables with Aspire's generic WithEnvironment API.
Additional documentation
See the listmonk documentation for listmonk configuration, administration, and operation.
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Aspire.Hosting (>= 13.6.4)
- Aspire.Hosting.PostgreSQL (>= 13.6.4)
-
net8.0
- Aspire.Hosting (>= 13.6.4)
- Aspire.Hosting.PostgreSQL (>= 13.6.4)
-
net9.0
- Aspire.Hosting (>= 13.6.4)
- Aspire.Hosting.PostgreSQL (>= 13.6.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.6.2-beta.959 | 35 | 10/27/2026 |
| 13.6.1 | 92 | 10/26/2026 |
| 13.6.1-beta.950 | 47 | 10/26/2026 |
| 13.6.1-beta.938 | 49 | 10/24/2026 |
| 13.6.1-beta.935 | 52 | 10/15/2026 |
| 13.6.1-beta.933 | 52 | 10/13/2026 |
| 13.6.1-beta.930 | 54 | 10/11/2026 |
| 13.6.0 | 132 | 10/1/2026 |
| 13.6.0-beta.914 | 58 | 10/1/2026 |
| 13.6.0-beta.910 | 54 | 9/30/2026 |
| 13.5.1-beta.895 | 64 | 9/29/2026 |
| 13.5.1-beta.806 | 71 | 9/28/2026 |
| 13.5.1-beta.803 | 53 | 9/28/2026 |
| 13.5.1-beta.781 | 71 | 9/28/2026 |
| 13.5.1-beta.779 | 61 | 9/28/2026 |
| 13.5.1-beta.777 | 56 | 9/28/2026 |
| 13.5.1-beta.776 | 66 | 9/28/2026 |
| 13.5.1-beta.775 | 61 | 9/27/2026 |
| 13.5.1-beta.770 | 64 | 9/25/2026 |
| 13.5.1-beta.767 | 72 | 9/22/2026 |