Self Hosted Comment Solution

Commento
Features
Fast
Bloat-free
No tracking
Open-source
Self-hosted
Self-hosted Control
Host Commento yourself to maintain full control of your data and privacy.
Why I chose Commento
How to integrate Commento with Hugo
Step 1
Create a Commento account and get your Commento site ID.
Step 2
Add the following to your Hugo <InlineCode>config.toml</InlineCode> file.
Toml
[params.commento]
site_id = "<your-site-id>"
Step 3
Add the following to your Hugo <InlineCode>layouts/partials/comments.html</InlineCode> file.
Html
{{ if .Site.Params.commento.site_id }}
<div id="commento"></div>
<script defer src="https://cdn.commento.io/js/commento.js"></script>
{{ end }}
Docker Compose File
Yaml
version: '3'
services:
server:
image: registry.gitlab.com/commento/commento
environment:
COMMENTO_ORIGIN: https://commento.hamish-fleming.com
COMMENTO_PORT: 8080
COMMENTO_POSTGRES: postgres://postgres:postgres@db:5432/commento?sslmode=disable
labels:
- traefik.enable=true
- traefik.docker.network=traf-external
- traefik.http.routers.commento.entrypoints=web
- traefik.http.routers.commento.rule=Host(`commento.hamish-fleming.com`)
- traefik.http.routers.commento.middlewares=middlewares-https-redirect@file
- traefik.http.routers.commento-secure.entrypoints=websecure
- traefik.http.routers.commento-secure.rule=Host(`commento.hamish-fleming.com`)
- traefik.http.services.commento-secure.loadbalancer.server.port=8080
- traefik.http.routers.commento-secure.tls.certresolver=myresolver
- traefik.http.routers.commento-secure.tls=true
depends_on:
- db
networks:
- frontend
- db_network
db:
image: postgres:13.4
environment:
POSTGRES_DB: commento
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- db_network
volumes:
- postgres_data_volume:/var/lib/postgresql/data
networks:
db_network:
frontend:
external:
name: traf-external
volumes:
postgres_data_volume:
Conclusion
Summary
Commento is a fast, bloat-free, and privacy-friendly commenting system that you can self-host with Docker and Traefik.