From 984a51cfd7def71655236054475eb07970a219a9 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 2 Apr 2022 22:34:32 -0500 Subject: [PATCH] Add stuff --- .gitignore | 2 ++ docker-compose.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24f9f8d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +data/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..941ddfd --- /dev/null +++ b/docker-compose.yml @@ -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