From 659934fe3d852f27ffdd8edb5e2850d74cac98be Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 13 Apr 2022 10:15:09 +0900 Subject: [PATCH] create hedgedoc --- hedgedoc/.env | 1 + hedgedoc/compose.yml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 hedgedoc/.env create mode 100644 hedgedoc/compose.yml diff --git a/hedgedoc/.env b/hedgedoc/.env new file mode 100644 index 0000000..7eb2c8d --- /dev/null +++ b/hedgedoc/.env @@ -0,0 +1 @@ +POSTGRES_PASSWORD=84wB5pZH3u4ZCRYyMDiJP_hKcXWUGfSMU9H-fG9dKK0 diff --git a/hedgedoc/compose.yml b/hedgedoc/compose.yml new file mode 100644 index 0000000..40b0717 --- /dev/null +++ b/hedgedoc/compose.yml @@ -0,0 +1,24 @@ +services: + app: + image: quay.io/hedgedoc/hedgedoc:1.9.3 + environment: + CMD_DB_URL: postgresql://postgres:${POSTGRES_PASSWORD}@db/postgres + CMD_DOMAIN: localhost:3000 + CMD_ALLOW_FREEURL: "true" + volumes: + - hedgedoc_data:/hedgedoc/public + ports: ["3000:3000"] + depends_on: + db: + condition: service_healthy + db: + image: postgres:14-alpine + healthcheck: + test: pg_isready -U postgres + environment: + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + volumes: + - postgres_data_v14:/var/lib/postgresql/data +volumes: + hedgedoc_data: + postgres_data_v14: