Update README.md

This commit is contained in:
jmal 2024-03-04 16:56:15 +08:00
parent 73a0236d88
commit 0048dd71a6
2 changed files with 27 additions and 36 deletions

View File

@ -18,27 +18,23 @@ JmalCloud 是一款私有云存储网盘项目,能够简单安全管理您的
### 线上Demo:
[查看 Demo](https://jmal.cc/demo) , 用户名:demo, 密码:demo1234
### docker部署(推荐)
[docker部署](https://jmal.cc/zsi5sq)
### 部署
- 必须安装:`Docker` 和 `Docker Compose v2.0+`
参考[docker-compose.yml](https://github.com/jamebal/jmal-cloud-server/blob/master/docker-compose.example2.yml)
```shell
# 1、克隆项目到您的本地或服务器
git clone --depth=1 https://github.com/jamebal/jmal-cloud-server.git
# 或者
git clone --depth=1 https://gitee.com/jmal/jmal-cloud-server.git
# 2、进入目录
cd jmal-cloud-server
# 3、一键安装
./jc.sh install
# 4、更新
./jc.sh pull
./jc.sh update
docker compose up -d
```
#### 重启管理员密码
```shell
# 1. 重置密码
docker exec -it jmalcloud_mongodb mongo jmalcloud --eval "db.getCollection('user').update({ 'creator': true }, {\$set: { 'password': '1000:c5b705ea13a1221f5e59110947ed806f8a978e955fbd2ed6:22508de12228c34a235454a0caf3bcaa5552858543258e56' }}, { 'multi': false, 'upsert': false })"
# 2. 重启容器
docker restart jmalcloud_server
# 重置后的密码为: jmalcloud
```
[其它方式部署](https://jmal.cc/ujh5Wl)
### dev
#### 环境准备:

View File

@ -19,28 +19,23 @@ JmalCloud It's a private cloud storage project that makes it simple and secure t
[View Demo](https://jmal.cc/demo) , username:demo, password:demo1234
### deployment(Recommend)
[docker deployment](https://jmal.cc/zsi5sq)
- You must install: 'Docker' and 'Docker Compose V2.0 +'
### Deploy
- Prerequisites:`Docker` and `Docker Compose v2.0+`
Refer to [docker-compose.yml](https://github.com/jamebal/jmal-cloud-server/blob/master/docker-compose.example2.yml)
```shell
# 1、Clone the project to your local or server
git clone --depth=1 https://github.com/jamebal/jmal-cloud-server.git
# Or
git clone --depth=1 https://gitee.com/jmal/jmal-cloud-server.git
# 2、Enter the directory
cd jmal-cloud-server
# 3、A key to install
./jc.sh install
# 4、Update
./jc.sh pull
./jc.sh update
docker compose up -d
```
#### Resetting Administrator Password
```shell
# 1. Reset the password
docker exec -it jmalcloud_mongodb mongo jmalcloud --eval "db.getCollection('user').update({ 'creator': true }, {\$set: { 'password': '1000:c5b705ea13a1221f5e59110947ed806f8a978e955fbd2ed6:22508de12228c34a235454a0caf3bcaa5552858543258e56' }}, { 'multi': false, 'upsert': false })"
# 2. Restart the container
docker restart jmalcloud_server
# The password after resetting is: jmalcloud
```
[Other ways deployment](https://jmal.cc/ujh5Wl)
### Dev
#### Environment Requirements: