Install with Docker


Docker is an amazing production service management tool. Before proceeding forward with this tutorial, install Docker for your platform. You can verify your Docker installation with the following command.

$ docker info
Containers: 48
 Running: 0
 Paused: 0

Docker Compose is supplementary tool that works with Docker to orchestrate containers and services. To install Docker Compose, follow their official documentation for your platform. Note, however, that Docker Compose is entirely optional; you can run Commento containerised with just plain Docker.

With Docker Compose

The primary advantage with Docker Compose is that it's dead easy to get started; with a single docker-compose up command, you can start Commento. No pulling dependencies manually, no setting up runtime environments, no starting background services. It's dead simple. If you don't have a running PostgreSQL server around, we recommend this.

An example and reference docker-compose.yml for Commento CE is given below. The latest version of the configuration file can always be found in the source repository.

version: '3'

      - 80:8080
      COMMENTO_POSTGRES: postgres://postgres:postgres@db:5432/commento?sslmode=disable
      - db
    image: postgres
      POSTGRES_DB: commento
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      - postgres_data_volume:/var/lib/postgres


Remember to change COMMENTO_ORIGIN to the domain where you want to host Commento (if you're locally testing out, localhost is fine). If you want Commento exposed on a port other than 80, change 80:8080.

The above configuration pulls and sets up Commento CE and PostgreSQL in two separate containers with persistence volume. Save the docker-compose.yml file somewhere and run the following command to start the services.

$ docker-compose up -f /path/to/docker-compose.yml

Then open in your web browser to go to the Commento dashboard and get started with embedding Commento in your website.

You can configure Commento with more advanced settings (such as setting up OAuth and SMTP). To learn more about this, read our section on configuring Commento.

With plain Docker

If you prefer to not use docker-compose and want to use plain ol' Docker, you can. First, pull the docker image. Then start a container with the appropriate ports. Note that this method requires you to have a running PostgreSQL server somewhere with access to.

$ docker pull
$ docker run -it                                                           \
    -p 80:8080                                                             \
    -e COMMENTO_ORIGIN=                         \
    -e COMMENTO_POSTGRES=postgres://username:password@ipaddr:port/commento \

Again, remember to change COMMENTO_ORIGIN and COMMENTO_POSTGRES to appropriate values. Running this would expose Commento on port 80 in your machine. Open in your web browser to the Commento dashboard and get started with embedding Commento in your website.

results matching ""

    No results matching ""