SH SelfHostAlt
Sponsored Self-host any open-source app on Hostinger KVM VPS from $4.99/mo (1-Click Docker) →
Listmonk logo

Listmonk

AGPL-3.0 Docker Ready ★ 24,500 Stars Active · 2026-11-28

High performance newsletter and mailing list manager with a modern dashboard. , Source Code.

Category
Communication - Email - Mailing Lists and Newsletters
Tech Stack / Runtime
Go/Docker
Open-Source License
AGPL-3.0
GitHub Health
★ 24,500 · 2,839 forks
#email-marketing#newsletter#newsletter-management#mailing-list#smtp
Official docker-compose.yml

Quick Docker Compose Reference for Listmonk

# All LISTMONK_* env variables also support the LISTMONK_*_FILE pattern for loading secrets from files with Docker secrets and Podman
# eg: LISTMONK_ADMIN_USER -> LISTMONK_ADMIN_USER_FILE=/path/to/file_with_value

x-db-credentials: &db-credentials                             # Use the default POSTGRES_ credentials if they're available or simply default to "listmonk"
  POSTGRES_USER: &db-user listmonk                            # for database user, password, and database name
  POSTGRES_PASSWORD: &db-password listmonk
  POSTGRES_DB: &db-name listmonk

services:
  # listmonk app
  app:
    image: listmonk/listmonk:latest
    container_name: listmonk_app
    restart: unless-stopped
    ports:
      - "9000:9000"                                           # To change the externally exposed port, change to: $custom_port:9000
    networks:
      - listmonk
    hostname: listmonk.example.com                            # Recommend using FQDN for hostname
    depends_on:
      - db
    command: [sh, -c, "./listmonk --install --idempotent --yes --config '' && ./listmonk --upgrade --yes --config '' && ./listmonk --config ''"]
                                                              # --config (file) param is set to empty so that listmonk only uses the env vars (below) for config.
                                                              # --install --idempotent ensures that DB installation happens only once on an empty DB, on the first ever start.
                                                              # --upgrade automatically runs any DB migrations when a new image is pulled.

    environment:                                              # The same params as in config.toml are passed as env vars here.
      LISTMONK_app__address: 0.0.0.0:9000
      LISTMONK_db__user: *db-user
      LISTMONK_db__password: *db-password
      LISTMONK_db__database: *db-name
      LISTMONK_db__host: db
      LISTMONK_db__port: 5432
      LISTMONK_db__ssl_mode: disable
      LISTMONK_db__max_open: 25
      LISTMONK_db__max_idle: 25
      LISTMONK_db__max_lifetime: 300s
      TZ: Etc/UTC
      LISTMONK_ADMIN_USER: ${LISTMONK_ADMIN_USER:-}           # If these (optional) are set during the first `docker compose up`, then the Super Admin user is automatically created.
      LISTMONK_ADMIN_PASSWORD: ${LISTMONK_ADMIN_PASSWORD:-}   # Otherwise, the user can be setup on the web app after the first visit to http://localhost:9000
    volumes:
      - ./uploads:/listmonk/uploads:rw                        # Mount an uploads directory on the host to /listmonk/uploads inside the container.
                                                              # To use this, change directory path in Admin -> Settings -> Media to /listmonk/uploads

  # Postgres database
  db:
    image: postgres:17-alpine
    container_name: listmonk_db
    restart: unless-stopped
    ports:
      - "127.0.0.1:5432:5432"                                 # Only bind on the local interface. To connect to Postgres externally, change this to 0.0.0.0
    networks:
      - listmonk
    environment:
      <<: *db-credentials
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U listmonk"]
      interval: 10s
      timeout: 5s
      retries: 6
    volumes:
      - type: volume
        source: listmonk-data
        target: /var/lib/postgresql/data

networks:
  listmonk:

volumes:
  listmonk-data:

Listmonk System Requirements & Self-Hosting Guide

Deploy Listmonk (4 GB+ RAM) →

Recommended VPS

4 GB+ RAM

2 – 4 vCPU · $6 – $12/mo VPS

Deployment Method

Intermediate

Docker / Docker Compose (Recommended)

Commercial Use (AGPL-3.0)

Yes for internal team self-hosting; modified SaaS redistribution requires sharing changes.

Maintenance Status

Active

Last commit: 2026-11-28

Frequently Asked Questions about Listmonk

Is Listmonk free to self-host for commercial use?

Listmonk is released under the AGPL-3.0 license. Yes for internal team self-hosting; modified SaaS redistribution requires sharing changes. It has 24,500 GitHub stars and was last updated on 2026-11-28.

What VPS specifications do I need to self-host Listmonk?

Based on its Go/Docker runtime and Communication - Email - Mailing Lists and Newsletters workload, we recommend at least 4 GB+ RAM and 2 – 4 vCPU (typically $6 – $12/mo VPS).

Does Listmonk support Docker deployment?

Yes — Listmonk supports Docker / Docker Compose (Recommended), making it intermediate to spin up on any Linux VPS.

More Open-Source Communication - Email - Mailing Lists and Newsletters

View all →
★ 11.1k

Marketing automation software (email, social and more). ).

Replaces: Mailchimp HubSpot
GPL-3.0 PHP
Details →
★ 2.3k Docker

Reliable and easy-to-use newsletter tool (alternative to Mailchimp and Sendinblue). , Source Code).

Replaces: Mailchimp Substack
AGPL-3.0 Docker
Details →
★ 883

Newsletter and email marketing with advanced management of subscribers, bounces, and plugins. .

AGPL-3.0 PHP
Details →