38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
version: '3.9'
|
|
|
|
services:
|
|
commento:
|
|
image: caroga/commentoplusplus
|
|
restart: unless-stopped
|
|
environment:
|
|
COMMENTO_ORIGIN: 'https://stats.karaolidis.com/comments/'
|
|
COMMENTO_CDN_PREFIX: 'https://stats.karaolidis.com/comments/'
|
|
COMMENTO_PORT: 8080
|
|
COMMENTO_POSTGRES: postgres://postgres:postgres@db:5432/commento?sslmode=disable
|
|
COMMENTO_SMTP_HOST: '${SMTP_HOST}'
|
|
COMMENTO_SMTP_PORT: '${SMTP_PORT}'
|
|
COMMENTO_SMTP_USERNAME: '${SMTP_USER}'
|
|
COMMENTO_SMTP_PASSWORD: '${SMTP_PASSWORD}'
|
|
COMMENTO_SMTP_FROM_ADDRESS: '${SMTP_FROM}'
|
|
COMMENTO_FORBID_NEW_OWNERS: 'true'
|
|
networks:
|
|
- default
|
|
- routing
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: postgres:13.4
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: commento
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
volumes:
|
|
- '/home/nick/configs/commento:/var/lib/postgresql/data'
|
|
user: '1000:1000'
|
|
|
|
networks:
|
|
routing:
|
|
external: true
|
|
name: routing |