38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
services:
|
|
commento:
|
|
image: caroga/commentoplusplus
|
|
restart: unless-stopped
|
|
environment:
|
|
- COMMENTO_ORIGIN=https://blog.karaolidis.com/comments/
|
|
- COMMENTO_CDN_PREFIX=https://blog.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}
|
|
- USE_STARTTLS=true
|
|
- 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/db:/var/lib/postgresql/data
|
|
user: 1000:1000
|
|
|
|
networks:
|
|
routing:
|
|
external: true
|
|
name: routing
|