Skip to content

Instantly share code, notes, and snippets.

@MexsonFernandes
Created January 2, 2021 14:27
Show Gist options
  • Save MexsonFernandes/eb21aff4267ab76ce657920f0fe12664 to your computer and use it in GitHub Desktop.
Save MexsonFernandes/eb21aff4267ab76ce657920f0fe12664 to your computer and use it in GitHub Desktop.
Commento deployment using Docker Compose
version: '3'
services:
server:
image: registry.gitlab.com/commento/commento
ports:
- 8080:8080
environment:
COMMENTO_ORIGIN: https://commento.domain.com
COMMENTO_PORT: 8080
COMMENTO_POSTGRES: postgres://postgres:postgres@db:5432/commento?sslmode=disable
depends_on:
- db
db:
image: postgres
environment:
POSTGRES_DB: commento
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data_volume:/var/lib/postgresql/data
volumes:
postgres_data_volume:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment