一、JmalCloud介绍
1.1 JmalCloud简介
JmalCloud 是一款私有云存储网盘项目,能够简单安全管理您的云端文件。
1.2 JmalCloud优点
- ✅ 支持OSS,阿里云OS、腾讯云OSS和MinIO
- ✅ 支持图片,音频,视频等文件的在线预览
- ✅ 支持Word、Excel、PPT、流程图和思维导图的编辑和预览
- ✅ 支持x86、arm64(Centos/Debian/Ubuntu/macOS)
- ✅ 提供强大的在线文本编辑器
- ✅ 支持超大文件上传,断点续传
- ✅ 支持WebDAV
演示
账号:demo,密码demo1234
开始搭建
1.1 创建docker-compose.yml
写入以下内容
version: "3"
services:
jmalcloud:
container_name: jmalcloud_server
image: jmal/jmalcloud:latest
environment:
MONGODB_URI: mongodb://mongo:27017/jmalcloud
TZ: Asia/Shanghai
volumes:
- ./docker/jmalcloud/files:/jmalcloud/files/
ports:
- 7072:8088
restart: unless-stopped
mongo:
container_name: jmalcloud_mongodb
image: mongo:4.4
environment:
TZ: Asia/Shanghai
volumes:
- ./docker/jmalcloud/mongodb/data/db:/data/db
- ./docker/jmalcloud/mongodb/backup:/dump
restart: unless-stopped
command: --wiredTigerCacheSizeGB 0.5
nginx:
container_name: jmalcloud_nginx
image: jmal/jmalcloud-nginx:latest
ports:
- 7070:80
- 7071:8089
environment:
TZ: Asia/Shanghai
links:
- jmalcloud
- office
- drawio-webapp
restart: unless-stopped
office: # Optional
container_name: jmalcloud_office
image: onlyoffice/documentserver:7.0.0.132
environment:
TZ: Asia/Shanghai
restart: unless-stopped
drawio-webapp: # Optional
container_name: jmalcloud_drawio
image: jgraph/drawio:20.2.3
environment:
TZ: Asia/Shanghai
restart: unless-stopped
执行
docker compose up -d
等待启动后访问: http://{your_ip}:7070
1.2重启管理员密码
# 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
备份/恢复 数据库
备份数据库
docker exec -it jmalcloud_mongodb mongodump -d jmalcloud -o /dump/xxx --gzip --quiet
恢复数据库
docker exec -it jmalcloud_mongodb mongorestore -d jmalcloud --dir /dump/xxx --gzip --quiet
© 版权声明
THE END
暂无评论内容