Introduction
Docker Compose is supplementary tool that works with Docker to orchestrate containers and services. To install Docker Compose, for your platform. Note that Docker Compose is entirely optional; you can run Commento containerised with just vanilla Docker.
With Vanilla Docker
First, pull the docker image.
Again, remember to change and COMMENTO_POSTGRES
to appropriate values. Open http://commento.example.com
on web browser and you should be greeted with the login page. Go to the to create an account and register your website.
With Docker Compose
With Docker Compose it’s easy to orchestrate multiple services with a single configuration file. And with a single docker-compose up
command, you can start everything, including a PostgreSQL server. If you don’t have a running PostgreSQL server around, this is recommend.
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 , change 80:8080
.
The above configuration pulls and sets up Commento and PostgreSQL in two separate containers with a persistent database volume. Save the docker-compose.yml
file somewhere and run the following command to start the services.