selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

GitLab
Commento logo

Self-host Commento

v1.8.0

Privacy-focused, ad-free comment widget for your website

ReleaseOpen Sourcemit
Updatedlast month
Setup difficultyModerate
Port
8080 (HTTP port the Commento server binds to (web UI and API))
Requires
PostgreSQL
Docker
registry.gitlab.com/commento/commento
Install with Docker Compose

What is Commento?

Commento is a commenting platform you embed on your own site so that readers can leave comments, described by its author as fast, lightweight and privacy-respecting with no ads. It handles markdown-formatted comments, voting, sticky comments, locked threads, moderation tools, automatic spam detection, email notifications, and OAuth or single sign-on login; existing threads can be imported from Disqus. Operators deploy it through the published GitLab container image and a provided Docker Compose file that runs the server alongside PostgreSQL, configured via environment variables such as COMMENTO_ORIGIN and COMMENTO_POSTGRES. The software is MIT-licensed free software, while the vendor's hosted cloud at commento.io is a paid service. The newest tagged release on the GitLab repo is v1.8.0 from April 2020, although the project shows later activity.

Commento alternatives

All self-hosted alternatives to Disqus → All self-hosted alternatives to Facebook Comments →

Should you self-host Commento?

Commento scores 53/100 on selfhost.directory (how scoring works) and ranks #5 of 5 in Comments.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is mit-licensed.

Its closest alternative on selfhost.directory is Isso (66/100, 5 314 stars). It scores higher overall, so compare the two before you pick. See Commento vs Isso side by side.

Features

  • Ad-free
  • Automated spam detection
  • Comment Voting
  • Disqus Import
  • Email notifications
  • Embeddable comments
  • Markdown Support
  • Moderation tools
  • Sticky comments
  • Thread locking

How to install Commento

Install Commento with Docker Compose

Environment variables
COMMENTO_ORIGIN, COMMENTO_PORT, COMMENTO_POSTGRES
version: '3'
services:
  server:
    image: registry.gitlab.com/commento/commento
    ports:
      - 8080:8080
    environment:
      COMMENTO_ORIGIN: http://commento.example.com:8080
      COMMENTO_PORT: 8080
      COMMENTO_POSTGRES: postgres://postgres:postgres@db:5432/commento?sslmode=disable
    depends_on:
      - db
    networks:
      - db_network
  db:
    image: postgres
    environment:
      POSTGRES_DB: commento
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    networks:
      - db_network
    volumes:
      - postgres_data_volume:/var/lib/postgresql/data
networks:
  db_network:
volumes:
  postgres_data_volume:

Official docker-compose.yml from the repository; example values should be changed for production.

How to configure Commento

  • COMMENTO_ORIGINPublic origin URL of the Commento instance (the URL users reach it at)
  • COMMENTO_PORT8080Port the Commento server listens on
  • COMMENTO_POSTGRESPostgreSQL connection string used by the server
  • COMMENTO_BIND_ADDRESS0.0.0.0Address the server binds to

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…