Documentation Update Re: docker-compose
On Installing Commento > Self-hosting > Using Docker, please update the recommended docker-compose.yml image to the latest Commento version.
I've attached my docker-compose.yml for reference. I was lazy and left the network and proxy bits on here. You may want to delete those and add a comment for COMMENTO_FORBID_NEW_OWNERS. I also copied and slightly edited your postgre settings. Mine's in another container.
The crucial bit is the image. Instead of running v 1.4.0, this picks up the latest version with the email notifications. (KUDOS FOR THAT!)
version: '3'
services:
server:
image: registry.gitlab.com/commento/commento
restart: always
container_name: commento
expose:
- "80"
depends_on:
- db
environment:
COMMENTO_ORIGIN: https://commento.example.com
COMMENTO_PORT: 8080
COMMENTO_POSTGRES: postgres://USERNAME:DB_PASSWORD@db:5432/commento?sslmode=disable
COMMENTO_FORBID_NEW_OWNERS: "true"
COMMENTO_SMTP_USERNAME: postmaster@mail.example.com
COMMENTO_SMTP_PASSWORD: EMAIL_PASSWORD
COMMENTO_SMTP_HOST: smtp.mailgun.org
COMMENTO_SMTP_PORT: 587
COMMENTO_SMTP_FROM_ADDRESS: postmaster@mail.example.com
COMMENTO_GOOGLE_KEY: somekey.apps.googleusercontent.com
COMMENTO_GOOGLE_SECRET: somesecret
VIRTUAL_HOST: commento.example.com
VIRTUAL_PORT: 8080
LETSENCRYPT_HOST: commento.example.com
LETSENCRYPT_EMAIL: postmaster@mail.example.com
db:
image: postgres
restart: always
environment:
POSTGRES_DB: commento
POSTGRES_USER: USERNAME
POSTGRES_PASSWORD: DB_PASSWORD
volumes:
- postgres_data_volume:/var/lib/postgresql/data
volumes:
postgres_data_volume:
networks:
default:
external:
name: nginx-proxy