Agentic hosting is here. Connect to our MCP now
CloudLinux.ro
Applications

How to install Listmonk on a Cloud VPS

Updated 11/29/2026

Listmonk is a self-hosted newsletter and mailing-list manager: unlimited subscribers, segments, templates, scheduled campaigns, open and click statistics, subscription forms and an API, sending through any SMTP server with no per-subscriber fee.

Self-hosted communication keeps your team conversations on your own server, with full data control and no history limits.

One-click install on cloudlinux.ro

The fastest way: Listmonk installs automatically at the first boot of a new server.

  1. Create a Cloud VPS from the control panel.
  2. In the configuration step, pick Listmonk from the app catalog.
  3. Start the server. The install runs in the background for a few minutes and its status shows on the server page.
  4. Access details and generated passwords are saved on the server in /root/app-credentials.txt.

Manual install on any Ubuntu server

If you prefer doing it yourself, below is the exact script our automatic install runs. Execute it as root on a fresh Ubuntu server (24.04 recommended). It stops at the first error, and when it finishes you will find the access details in /root/app-credentials.txt.

export DEBIAN_FRONTEND=noninteractive
cl_firewall
curl -fsSL https://get.docker.com | sh
mkdir -p /opt/listmonk/uploads
cd /opt/listmonk
ADMIN_PASS=$(openssl rand -base64 24 | tr -dc 'A-Za-z0-9' | cut -c1-20)
cat > .env <<ENV
DB_PASSWORD=$(openssl rand -hex 24)
LISTMONK_ADMIN_USER=admin
LISTMONK_ADMIN_PASSWORD=${ADMIN_PASS}
ENV
chmod 600 .env
# Pinned: the app upgrades the database on every start, so a moving tag would migrate it unasked.
cat > docker-compose.yml <<'YML'
services:
  app:
    image: listmonk/listmonk:v6.2.0
    restart: unless-stopped
    ports:
      - "127.0.0.1:9000:9000"
    depends_on:
      db: { condition: service_healthy }
    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__user: listmonk
      LISTMONK_db__password: ${DB_PASSWORD}
      LISTMONK_db__database: listmonk
      LISTMONK_db__host: db
      LISTMONK_db__port: 5432
      LISTMONK_db__ssl_mode: disable
      LISTMONK_ADMIN_USER: ${LISTMONK_ADMIN_USER}
      LISTMONK_ADMIN_PASSWORD: ${LISTMONK_ADMIN_PASSWORD}
      TZ: Europe/Bucharest
    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 -U listmonk"]
      interval: 5s
      timeout: 5s
      retries: 20
    volumes:
      - listmonk-data:/var/lib/postgresql/data
volumes:
  listmonk-data:
YML
docker compose pull
docker compose up -d
for i in $(seq 1 60); do curl -fs -o /dev/null http://127.0.0.1:9000/health && break; sleep 5; done
curl -fs -o /dev/null http://127.0.0.1:9000/health
# The public address lives in the database: links in campaigns and unsubscribe pages use it.
docker compose exec -T db psql -U listmonk -d listmonk -c "UPDATE settings SET value='\"https://${CL_HOSTNAME}\"' WHERE key='app.root_url';"
docker compose restart app
for i in $(seq 1 30); do curl -fs -o /dev/null http://127.0.0.1:9000/health && break; sleep 3; done
curl -fs -o /dev/null http://127.0.0.1:9000/health
{
  printf 'Listmonk: utilizator admin, parola %s\n' "$ADMIN_PASS"
  printf 'Trimiterea emailurilor: configureaza un server SMTP in Settings > SMTP (releu SMTP, serviciu tranzactional sau serverul tau de mail).\n'
  printf 'Adresa publica a fost setata la https://%s (Settings > General).\n' "$CL_HOSTNAME"
  printf 'Actualizare: in /opt/listmonk schimbi versiunea imaginii in docker-compose.yml, apoi docker compose pull && docker compose up -d\n'
} > /root/app-credentials.txt
cl_expose Listmonk 9000

You can also save this script as a recipe in your account and reuse it on any new server.

Put this guide into practice on your own VPS

EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.

See pricing

Related tutorials