From 3a09c7496340840b98c4a986cdd5c8c8c2e6b88c Mon Sep 17 00:00:00 2001 From: zhinianboke <115088296+zhinianboke@users.noreply.github.com> Date: Mon, 4 Aug 2025 20:01:51 +0800 Subject: [PATCH] Update README.md --- README.md | 58 ++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 4d9f21c..2bc43d0 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ - **多规格卡券管理** - 支持创建和管理多规格卡券 - **发货规则管理** - 支持多规格发货规则的创建和管理 - **数据备份** - 自动数据备份和恢复 +- **一键部署** - 提供预构建Docker镜像,无需编译即可快速部署 ## 📁 项目结构 @@ -140,8 +141,36 @@ xianyu-auto-reply/ ## 🚀 快速开始 +**⚡ 最快部署方式(推荐)**:使用预构建镜像,无需下载源码,一条命令即可启动! + ### 方式一:Docker 一键部署(最简单) +```bash +# 1. 创建数据目录 +mkdir -p xianyu-auto-reply + +# 2. 一键启动容器 +docker run -d \ + -p 8080:8080 \ + -v $PWD/xianyu-auto-reply/:/app/data/ \ + --name xianyu-auto-reply \ + registry.cn-shanghai.aliyuncs.com/zhinian-software/xianyu-auto-reply:1.0 + +# 3. 访问系统 +# http://localhost:8080 +``` + +**Windows用户**: +```cmd +# 创建数据目录 +mkdir xianyu-auto-reply + +# 启动容器 +docker run -d -p 8080:8080 -v %cd%/xianyu-auto-reply/:/app/data/ --name xianyu-auto-reply registry.cn-shanghai.aliyuncs.com/zhinian-software/xianyu-auto-reply:1.0 +``` + +### 方式二:从源码构建部署 + ```bash # 1. 克隆项目 git clone https://github.com/zhinianboke/xianyu-auto-reply.git @@ -169,23 +198,6 @@ bash docker-deploy.sh docker-compose up -d --build ``` -### 方式二:Docker Compose 手动部署 - -```bash -# 1. 克隆项目 -git clone https://github.com/zhinianboke/xianyu-auto-reply.git -cd xianyu-auto-reply - -# 2. 构建并启动服务 -docker-compose up -d --build - -# 3. 查看服务状态 -docker-compose ps - -# 4. 访问系统 -# http://localhost:8080 -``` - ### 方式三:本地开发部署 ```bash @@ -528,7 +540,17 @@ docker-compose build --no-cache docker-compose up -d ``` -### 6. Windows系统部署 +### 6. 预构建镜像拉取失败 +如果无法拉取预构建镜像,可以使用源码构建: + +```bash +# 克隆项目并从源码构建 +git clone https://github.com/zhinianboke/xianyu-auto-reply.git +cd xianyu-auto-reply +./docker-deploy.sh +``` + +### 7. Windows系统部署 Windows用户推荐使用批处理脚本: ```cmd