Skip to content

Commit

Permalink
Merge pull request #270 from acdiost/master
Browse files Browse the repository at this point in the history
新增 docker 部署说明
  • Loading branch information
lanyulei authored Jul 13, 2022
2 parents ac266ed + d0aada5 commit ce0a643
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 19 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

0 comments on commit ce0a643

Please sign in to comment.