Compare commits
2 Commits
8a8a14b373
...
984a51cfd7
Author | SHA1 | Date |
---|---|---|
BBaoVanC | 984a51cfd7 | |
BBaoVanC | 8cad062e29 |
|
@ -0,0 +1,2 @@
|
||||||
|
.env
|
||||||
|
data/
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "commentoplusplus"]
|
||||||
|
path = commentoplusplus
|
||||||
|
url = https://github.com/souramoo/commentoplusplus.git
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 48e0f55828baad5e10a0fbd97fb6fe83ff62e93f
|
|
@ -0,0 +1,29 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:13
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=commento
|
||||||
|
- POSTGRES_PASSWORD
|
||||||
|
- POSTGRES_DB=commentodb
|
||||||
|
volumes:
|
||||||
|
- ./data/postgres:/var/lib/postgresql/data/
|
||||||
|
restart: always
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready -U commento -d commentodb
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
commento:
|
||||||
|
build: commentoplusplus/
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:83:8080
|
||||||
|
environment:
|
||||||
|
- COMMENTO_ORIGIN=https://commento.bbaovanc.com
|
||||||
|
- COMMENTO_PORT=8080
|
||||||
|
- COMMENTO_POSTGRES=postgres://commento:$POSTGRES_PASSWORD@postgres:5432/commentodb?sslmode=disable
|
||||||
|
- COMMENTO_ENABLE_LOGGING=true
|
||||||
|
- COMMENTO_FORBID_NEW_OWNERS=true
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
Reference in New Issue