# Commento

> Self-hosted, open-source commenting platform for your website with markdown, Disqus import, voting, spam detection, moderation tools and OAuth/SSO login.

- **Category:** [Comments](https://selfhost.directory/comments)
- **Licence:** mit
- **Source model:** Open source
- **Latest version:** v1.8.0
- **Author:** commento
- **Platforms:** Docker Compose
- **Ports:** 8080 (HTTP port the Commento server binds to (web UI and API))
- **Requires:** PostgreSQL
- **Tags:** Privacy, Markdown, OAuth, SSO, Blogging, Comments, Voting, Moderation, Ad free, Spam detection

## Docker images

- [`registry.gitlab.com/commento/commento`](https://registry.gitlab.com/commento/commento)

## 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.

## Should you self-host Commento?

Commento scores **53/100** on selfhost.directory ([how scoring works](https://selfhost.directory/scoring)) and ranks **#5 of 5** in [Comments](https://selfhost.directory/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](https://selfhost.directory/project/isso) (66/100, 5 314 stars). It scores higher overall, so compare the two before you pick. [See Commento vs Isso side by side.](https://selfhost.directory/compare/commento-2-vs-isso)

## 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
```

```yaml
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:
```

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

## Commento is a self-hosted alternative to

- [Disqus](https://selfhost.directory/alternative-to/disqus)
- [Facebook Comments](https://selfhost.directory/alternative-to/facebook-comments)

## Commento alternatives

- [remark42](https://selfhost.directory/project/remark42): A self-hosted, open-source comment engine for blogs and articles: social and email login, Markdown, moderation, voting, RSS, and imports from Disqus and WordPress. (compare: https://selfhost.directory/compare/commento-2-vs-remark42)
- [Isso](https://selfhost.directory/project/isso): Open-source, self-hosted commenting server with a SQLite backend that drops in where Disqus used to run: embed one small JS file, moderate via a web admin. (compare: https://selfhost.directory/compare/commento-2-vs-isso)
- [Coral](https://selfhost.directory/project/coral): Self-hosted, open-source comment platform from Vox Media for news sites: moderation queues, banned-word lists, Perspective toxicity and Akismet spam filters, SSO. (compare: https://selfhost.directory/compare/commento-2-vs-coral)
- [Artalk](https://selfhost.directory/project/artalk): Self-hosted comment system in Go and Vanilla JS. Deploy via Docker or binary. Social login, email notifications, markdown, multi-site, data migration. (compare: https://selfhost.directory/compare/artalk-vs-commento-2)
- [Talkyard](https://selfhost.directory/project/talkyard): Self-hosted open-source community platform combining forum, chat, Q&A, and blog comments — alternative to StackOverflow, Slack, Discourse, Reddit, Disqus. (compare: https://selfhost.directory/compare/commento-2-vs-talkyard)
- [waline](https://selfhost.directory/project/waline): A simple, safe, self-hosted comment system with backend support. Replaces Disqus-style services for blogs and websites. (compare: https://selfhost.directory/compare/commento-2-vs-waline)
- [Ech0](https://selfhost.directory/project/ech0): Self-hosted, open-source microblog platform for publishing short posts, links, and media to a personal timeline, with RSS, comments, OAuth/OIDC login, and an AI copilot. (compare: https://selfhost.directory/compare/commento-2-vs-ech0)
- [Loomio](https://selfhost.directory/project/loomio): Open-source self-hosted decision-making tool for groups: discussions, proposals with many voting methods, subgroups, reply-by-email, deployed with Docker Compose. (compare: https://selfhost.directory/compare/commento-2-vs-loomio)

## More in Comments

- [Coral](https://selfhost.directory/project/coral): Self-hosted, open-source comment platform from Vox Media for news sites: moderation queues, banned-word lists, Perspective toxicity and Akismet spam filters, SSO.
- [Isso](https://selfhost.directory/project/isso): Open-source, self-hosted commenting server with a SQLite backend that drops in where Disqus used to run: embed one small JS file, moderate via a web admin.
- [remark42](https://selfhost.directory/project/remark42): A self-hosted, open-source comment engine for blogs and articles: social and email login, Markdown, moderation, voting, RSS, and imports from Disqus and WordPress.
- [Artalk](https://selfhost.directory/project/artalk): Self-hosted comment system in Go and Vanilla JS. Deploy via Docker or binary. Social login, email notifications, markdown, multi-site, data migration.

## Links

- [Homepage](https://gitlab.com/commento/commento)

---
Source: https://selfhost.directory/project/commento-2