From 16b7ac01ee103099e7a78b1ec9efcb4333f9ef66 Mon Sep 17 00:00:00 2001 From: xiaozzzi <42293085+xiaozzzi@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- docker/README.md | 18 +++++++++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5cbe30d..e16d618 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ Blossom 是一个支持**私有部署**的**云端存储双链笔记软件**,

- 你可以先进行[试用](https://www.wangyunf.com/blossom-doc/doc/tryuse),我们提供了一个试用账号帮你体验该应用。 -- 使用 [Docker / Docker Compose](http://localhost:5174/blossom-doc/doc/backend) 进行部署。 +- 使用 [Docker / Docker Compose](https://www.wangyunf.com/blossom-doc/doc/backend) 进行部署。 - 阅读[文档](https://www.wangyunf.com/blossom-doc/index)来查看更多使用细节。 --- -#### Blossom 具有以下优势: +### 👏 Blossom 具有以下优势: 1. **不再需要为同步设备数量付费**。 2. **不再需要为公网访问付费**。 @@ -35,7 +35,7 @@ Blossom 是一个支持**私有部署**的**云端存储双链笔记软件**, 9. **丰富的功能拓展**,包含日历计划,待办事项清单,一个完善的个人管理工具。 10. **支持 Docker / Docker Compose 部署**。 -#### Blossom 具有以下功能: +### 🎁 Blossom 具有以下功能: 1. **文章编辑**:Markdown 文章编写,文章公网访问权限,文章分类管理。 2. **双链笔记**:内部文章与外部链接引用形成的双链笔记知识网络。 3. **全量导出**:每日全量备份,备份一键下载。 diff --git a/docker/README.md b/docker/README.md index d7230fe..f48bb6f 100644 --- a/docker/README.md +++ b/docker/README.md @@ -157,7 +157,7 @@ services: image: jasminexzzz/blossom:latest container_name: blossom-backend volumes: - # 【需修改】挂载图片保存路径,如果是windows环境,可以使用/c/home/bl/来指定磁盘 + # 【需修改】挂载图片保存路径,如果是windows环境,可以使用/c/home/bl/img/来指定磁盘 - /d/blossom/bl/:/home/bl/ environment: SPRING_PROFILES_ACTIVE: prod @@ -175,13 +175,20 @@ services: - "9999:9999" networks: - blossomnet + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:9999/sys/alive"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 5s restart: always depends_on: - - blmysql + blmysql: + condition: service_healthy blmysql: image: mysql:8.0.31 container_name: blossom-mysql - restart: always + restart: on-failure:3 # 【需修改】注意挂载路径 volumes: - /d/blossom/Docker/mysql/data:/var/lib/mysql @@ -197,6 +204,11 @@ services: - "3306:3306" networks: - blossomnet + healthcheck: + test: ["CMD", "mysqladmin", "-uroot", "-pjasmine888", "ping", "-h", "localhost"] + interval: 10s + timeout: 3s + retries: 12 ```