From f6b8a471403654b1ac6cc3a9331363b71b056d38 Mon Sep 17 00:00:00 2001 From: Stellar Rounin Date: Sat, 18 Oct 2025 09:18:53 -0600 Subject: [PATCH 1/2] feat(servide): Add siyuan template --- public/svgs/siyuan.svg | 10 ++++++++++ templates/compose/siyuan.yaml | 28 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 public/svgs/siyuan.svg create mode 100644 templates/compose/siyuan.yaml diff --git a/public/svgs/siyuan.svg b/public/svgs/siyuan.svg new file mode 100644 index 000000000..fc15edd5e --- /dev/null +++ b/public/svgs/siyuan.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/templates/compose/siyuan.yaml b/templates/compose/siyuan.yaml new file mode 100644 index 000000000..30f4054ed --- /dev/null +++ b/templates/compose/siyuan.yaml @@ -0,0 +1,28 @@ +# documentation: https://github.com/siyuan-note/siyuan +# slogan: A privacy-first, self-hosted, fully open source personal knowledge management software, written in typescript and golang. +# tags: note-taking,markdown,pkm +# logo: svgs/siyuan.svg +# port: 6806 + +services: + siyuan: + image: b3log/siyuan + volumes: + - 'siyuan_workspace:/siyuan/workspace' + environment: + - SERVICE_URL_SIYUAN_6806 + - TZ=${TZ:-UTC} + - PUID=1000 + - PGID=1000 + - 'SIYUAN_ACCESS_AUTH_CODE=${SERVICE_PASSWORD_SIYUAN}' + healthcheck: + test: + - CMD + - wget + - '--spider' + - '--quiet' + - 'http://127.0.0.1:6806/api/system/version' + interval: 15s + timeout: 10s + retries: 5 + start_period: 40s \ No newline at end of file From 50be79db85aca3b79a3afba77c1258e493474ca6 Mon Sep 17 00:00:00 2001 From: Stellar Rounin Date: Sun, 19 Oct 2025 18:09:01 -0600 Subject: [PATCH 2/2] fix(service): Update image version & healthcheck start period --- templates/compose/siyuan.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/compose/siyuan.yaml b/templates/compose/siyuan.yaml index 30f4054ed..5654465bb 100644 --- a/templates/compose/siyuan.yaml +++ b/templates/compose/siyuan.yaml @@ -6,7 +6,7 @@ services: siyuan: - image: b3log/siyuan + image: b3log/siyuan:v3.3.5 volumes: - 'siyuan_workspace:/siyuan/workspace' environment: @@ -25,4 +25,4 @@ services: interval: 15s timeout: 10s retries: 5 - start_period: 40s \ No newline at end of file + start_period: 20s \ No newline at end of file