Refactor docker-compose files

This commit is contained in:
2022-08-29 14:37:55 +03:00
parent 7b0636312c
commit 9c051ed370
28 changed files with 624 additions and 700 deletions

View File

@@ -0,0 +1,38 @@
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