Skip to Content

Deploy Listmonk

High performance, self-hosted newsletter and mailing list manager with a modern dashboard.

⭐ 19.0k stars📜 AGPL-3.0🔴 Advanced⏱ ~20 minutes

What You’ll Get

A fully working Listmonk instance running on your server. Your data stays on your hardware — no third-party access, no usage limits, no surprise invoices.

Prerequisites

  • A server with Docker and Docker Compose installed (setup guide)
  • A domain name pointed to your server (optional but recommended)
  • Basic terminal access (SSH)

The Config

Create a directory for Listmonk and add this docker-compose.yml:

# ------------------------------------------------------------------------- # 🚀 Created and distributed by The AltStack # 🌍 https://thealtstack.com # ------------------------------------------------------------------------- version: '3.8' services: listmonk: image: listmonk/listmonk:latest container_name: listmonk restart: unless-stopped command: sh -c './listmonk --install --yes --idempotent && ./listmonk' depends_on: - listmonk-db ports: - "9000:9000" volumes: - ./config.toml:/listmonk/config.toml listmonk-db: image: postgres:13-alpine container_name: listmonk-db restart: unless-stopped environment: - POSTGRES_USER=listmonk - POSTGRES_PASSWORD=listmonk - POSTGRES_DB=listmonk volumes: - listmonk_db_data:/var/lib/postgresql/data volumes: listmonk_db_data:

Let’s Ship It

# Create a directory mkdir -p /opt/listmonk && cd /opt/listmonk # Create the docker-compose.yml (paste the config above) nano docker-compose.yml # Pull images and start docker compose up -d # Watch the logs docker compose logs -f

Environment Variables

VariableDefaultRequired
POSTGRES_USERlistmonkNo
POSTGRES_PASSWORDlistmonkNo
POSTGRES_DBlistmonkNo

Post-Deployment Checklist

  • Service is accessible on the configured port
  • Admin account created (if applicable)
  • Reverse proxy configured (Caddy guide)
  • SSL/HTTPS working
  • Backup script set up (backup guide)
  • Uptime monitor added (Uptime Kuma)

The “I Broke It” Section

Container won’t start?

docker compose logs listmonk | tail -50

Port already in use?

# Find what's using the port lsof -i :PORT_NUMBER

Need to start fresh?

docker compose down -v # ⚠️ This deletes volumes/data! docker compose up -d

Going Further