Merge pull request #270 from acdiost/master

新增 docker 部署说明
This commit is contained in:
lanyulei 2022-07-13 14:53:49 +08:00 committed by GitHub
commit ce0a643058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 2 deletions

View File

@ -79,6 +79,26 @@
<ul><li>用户、角色、岗位的增删查改,批量删除,多条件搜索</li><li>角色、岗位数据导出Excel</li><li>重置用户密码</li><li>维护个人信息,上传管理头像,修改当前账户密码</li><li>部门的增删查改</li><li>菜单目录、跳转、按钮及API接口的增删查改</li><li>登陆日志管理</li><li>左菜单权限控制</li><li>页面按钮权限控制</li><li>API接口权限控制</li></ul>
<!-- /wp:list -->
## 部署
docker-compose 快速开始:
```bash
git clone https://github.com/lanyulei/ferry.git
cd ferry
# 若需初始化
touch config/needinit
# 需要提前安装 docker 和 docker-compose
docker-compose up -d
```
测试访问:
http://ip:8002
---
快速安装部署:
```
bash build.sh install

View File

@ -5,20 +5,31 @@ services:
image: mysql:8
container_name: ferry_mysql
restart: unless-stopped
# 可开放出来
#ports:
# - 3306:3306
environment:
MYSQL_ROOT_PASSWORD: '123456'
MYSQL_DATABASE: 'ferry'
MYSQL_USER: 'ferry'
MYSQL_PASSWORD: '123456'
volumes:
- './mysql/db:/var/lib/mysql'
- '/etc/localtime:/etc/localtime:ro'
ferry_redis:
container_name: ferry_redis
image: redis:latest
restart: unless-stopped
# 可开放出来
#ports:
# - 6379:6379
command: redis-server --save 60 1 --loglevel warning
ferry:
build:
context: "."
dockerfile: "Dockerfile"
image: ferry:latest
container_name: ferry
restart: unless-stopped
@ -28,4 +39,10 @@ services:
ports:
- "8002:8002"
volumes:
- ./config:/opt/workflow/ferry/config
- '/etc/localtime:/etc/localtime:ro'
- './config:/opt/workflow/ferry/config'
logging:
driver: json-file
options:
max-size: "10m"
max-file: "10"