CommunityToolkit.Aspire.Hosting.Listmonk
17.0.0
Prefix Reserved
dotnet add package CommunityToolkit.Aspire.Hosting.Listmonk --version 17.0.0
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.Listmonk -Version 17.0.0
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Listmonk" Version="17.0.0" />
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.Listmonk" Version="17.0.0" />
<PackageReference Include="CommunityToolkit.Aspire.Hosting.Listmonk" />
paket add CommunityToolkit.Aspire.Hosting.Listmonk --version 17.0.0
#r "nuget: CommunityToolkit.Aspire.Hosting.Listmonk, 17.0.0"
#:package CommunityToolkit.Aspire.Hosting.Listmonk@17.0.0
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.Listmonk&version=17.0.0
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.Listmonk&version=17.0.0
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 | 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. net11.0 is compatible. |
-
net10.0
- Aspire.Hosting (>= 17.0.0)
- Aspire.Hosting.PostgreSQL (>= 17.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
-
net11.0
- Aspire.Hosting (>= 17.0.0)
- Aspire.Hosting.PostgreSQL (>= 17.0.0)
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 |
|---|---|---|
| 17.0.0 | 92 | 11/20/2026 |
| 17.0.0-beta.1090 | 53 | 11/20/2026 |
| 17.0.0-beta.1088 | 49 | 11/20/2026 |
| 17.0.0-beta.1080 | 90 | 11/20/2026 |
| 17.0.0-beta.1078 | 54 | 11/19/2026 |
| 17.0.0-beta.1077 | 48 | 11/19/2026 |
| 17.0.0-beta.1076 | 49 | 11/19/2026 |
| 17.0.0-beta.1075 | 49 | 11/19/2026 |
| 17.0.0-beta.1052 | 57 | 11/16/2026 |
| 17.0.0-beta.1051 | 61 | 11/12/2026 |
| 17.0.0-beta.1033 | 66 | 11/10/2026 |
| 17.0.0-beta.1022 | 58 | 11/8/2026 |
| 17.0.0-beta.1018 | 61 | 11/6/2026 |
| 17.0.0-beta.1009 | 66 | 11/5/2026 |
| 17.0.0-beta.994 | 62 | 11/4/2026 |
| 17.0.0-beta.993 | 65 | 11/4/2026 |
| 13.6.2-beta.959 | 69 | 10/27/2026 |
| 13.6.1 | 148 | 10/26/2026 |
| 13.6.1-beta.950 | 72 | 10/26/2026 |
| 13.6.1-beta.938 | 70 | 10/24/2026 |