From c6d0abc0964e6932abf00f8be55857b043c35a71 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Wed, 6 Nov 2024 00:21:40 +0100 Subject: [PATCH] feat: add template for Wiki.js --- public/svgs/wikijs.svg | 119 ++++++++++++++++++++++++++++++++++ templates/compose/wikijs.yaml | 43 ++++++++++++ 2 files changed, 162 insertions(+) create mode 100644 public/svgs/wikijs.svg create mode 100644 templates/compose/wikijs.yaml diff --git a/public/svgs/wikijs.svg b/public/svgs/wikijs.svg new file mode 100644 index 000000000..52c4a790b --- /dev/null +++ b/public/svgs/wikijs.svg @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/compose/wikijs.yaml b/templates/compose/wikijs.yaml new file mode 100644 index 000000000..d6d41d334 --- /dev/null +++ b/templates/compose/wikijs.yaml @@ -0,0 +1,43 @@ +# documentation: https://docs.requarks.io +# slogan: The most powerful and extensible open source Wiki software. +# tags: wiki, collaboration, documentation +# logo: svgs/wikijs.svg +# port: 80 + +version: "3" +services: + db: + image: postgres:15-alpine + environment: + POSTGRES_DB: wiki + POSTGRES_PASSWORD: ${SERVICE_PASSWORD_POSTGRES} + POSTGRES_USER: ${SERVICE_USER_POSTGRES} + healthcheck: + test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] + interval: 5s + timeout: 20s + retries: 10 + logging: + driver: "none" + restart: unless-stopped + volumes: + - db-data:/var/lib/postgresql/data + + wiki: + image: ghcr.io/requarks/wiki:2 + depends_on: + - db + environment: + DB_TYPE: postgres + DB_HOST: db + DB_PORT: 5432 + DB_USER: ${SERVICE_USER_POSTGRES} + DB_PASS: ${SERVICE_PASSWORD_POSTGRES} + DB_NAME: wiki + SERVICE_FQDN_WIKI_3000: + healthcheck: + test: curl --fail http://localhost:3000 || exit 1 + restart: unless-stopped + +volumes: + db-data: