← All templates · Social and community
Deploy listmonk in one click
A newsletter and mailing list manager
A self-hosted alternative to Mailchimp and MailerLite.
What is listmonk?
listmonk is an open-source newsletter and mailing list manager, a self-hosted alternative to Mailchimp. Your lists and subscribers live in PostgreSQL, behind a web dashboard for campaigns, templates and analytics. Write a campaign in a drag-and-drop builder, Markdown or raw HTML, and personalize it from each subscriber's JSON attributes, which you can also segment with SQL. A transactional API sends one-off emails, such as a welcome or a password reset.
People run listmonk themselves to keep their subscriber list in a database they control. There is no fee per subscriber or per email, and its site says it fits a few hundred subscribers on a tiny VPS as well as millions. Every feature is in its HTTP API too, so a signup form or a script can add subscribers. The catch is that listmonk delivers no mail itself: you need an SMTP service such as Amazon SES or Postmark.
Hosting listmonk on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at listmonk. You fill in what it asks for and click Create project: Admin password.
- In a minute or two listmonk is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about listmonk
Is listmonk free and open source?
Yes. listmonk is free software under the AGPL-3.0 licence, with its source on GitHub at knadh/listmonk. You pay only for the server it runs on and the SMTP service that delivers the mail.
Does listmonk need an SMTP server to send emails?
Yes. listmonk hands every message to SMTP servers you configure, such as Amazon SES, SendGrid, Postmark or your own, and can use several at once. Its rate limits keep a large campaign within the provider's quota.
Is listmonk a good Mailchimp alternative?
For newsletters to opt-in lists, yes: it has segmentation, a visual campaign builder, templates, bounce handling and campaign analytics. The difference is that subscribers live in your own PostgreSQL database and mail goes through an SMTP provider you pick.
Can listmonk import subscribers from a CSV file?
Yes. The Import page takes a CSV, or a ZIP holding one, with an email column and optional name and JSON attributes columns. It can overwrite the details of subscribers who already exist, and the API offers the same import.
How do I update listmonk to a new version on Pethost?
Change the image tag in the project's compose.yaml and deploy, or ask your agent to. The container applies the database migrations at each start, so going back needs a backup made before the upgrade, not just the old tag.
How much memory and disk does listmonk need?
listmonk is light: about 100 MB with Postgres, and tens of thousands of subscribers take a few gigabytes. On Pethost the Starter plan is enough for it, with room for other apps beside it.
listmonk Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.
Containers: app (listmonk/listmonk:v6.2.0), db (postgres:17-alpine).
Volumes, in the nightly backup: uploads, db.
services:
app:
image: listmonk/listmonk:v6.2.0
restart: unless-stopped
command: [sh, -c, "./listmonk --install --idempotent --yes --config '' && ./listmonk --upgrade --yes --config '' && ./listmonk --config ''"]
environment:
LISTMONK_app__address: "0.0.0.0:9000"
LISTMONK_db__host: db
LISTMONK_db__port: 5432
LISTMONK_db__user: listmonk
LISTMONK_db__password: ${DB_PASSWORD}
LISTMONK_db__database: listmonk
LISTMONK_db__ssl_mode: disable
LISTMONK_db__max_open: 25
LISTMONK_db__max_idle: 25
LISTMONK_db__max_lifetime: 300s
# The install makes this Super Admin, so no setup page is left open.
LISTMONK_ADMIN_USER: admin
LISTMONK_ADMIN_PASSWORD: ${ADMIN_PASSWORD}
TZ: Etc/UTC
depends_on:
db:
condition: service_healthy
volumes:
- uploads:/listmonk/uploads
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: listmonk
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: listmonk
healthcheck:
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U listmonk -d listmonk"]
interval: 5s
timeout: 5s
retries: 10
start_period: 30s
volumes:
- db:/var/lib/postgresql/data
volumes:
uploads:
db:
More in Social and community
- LemmyA link aggregator and forum for the fediverse
- NodeBBA forum for your community
- Apache AnswerQuestions and answers for a community, a help center or a team, a Stack Overflow of your own
- MastodonYour own server in the fediverse: posts, follows and replies across Mastodon and beyond
- MattermostOpen-source team chat with channels, threads, file sharing and integrations
- PixelfedPhoto sharing without ads or algorithms, an Instagram alternative that federates with Mastodon