一、前言
本文将通过docker-compose
安装flowable-ui
,并配置mysql数据库进行数据持久化
二、安装
# 环境准备
git clone https://gitee.com/zhengqingya/docker-compose.git
cd docker-compose/Liunx
# 运行服务
docker-compose -f docker-compose-flowable.yml -p flowable up -d
docker-compose-flowable.yml
可参考: https://flowable.com/open-source/docs/bpmn/ch14-Applications/
mysql驱动下载: https://dev.mysql.com/downloads/connector/j/
注:
mysql需使用8.0.22版本
,否则会出现第一次启动服务正常,第二次却无法启动问题,此问题可查看 => https://bugs.mysql.com/bug.php?id=102435&nullCatalogMeansCurrent=true
解决串表问题
version: '3'
services:flowable-ui:image: registry.cn-hangzhou.aliyuncs.com/zhengqing/flowable-ui:6.6.0 # 原镜像`flowable/flowable-ui:6.6.0`container_name: flowable-uirestart: alwaysvolumes:- "./flowable/mysql-connector-java-8.0.22.jar:/app/WEB-INF/lib/mysql-connector-java-8.0.22.jar"environment:- spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver # mysql8驱动- spring.datasource.url=jdbc:mysql://修改为自己的ip地址:3306/flowable?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useSSL=false&nullCatalogMeansCurrent=true- spring.datasource.username=root # 数据库账号- spring.datasource.password=root # 数据库密码- flowable.async-executor-activate=false # 关闭定时任务JOB- flowable.database-schema-update=true # 当Flowable发现库与数据库表结构不一致时,会自动将数据库表结构升级至新版本ports:- "9004:8080"
可视化界面访问地址:http://ip地址:9004/flowable-ui
默认登录账号密码:admin/test
今日分享语句:
一点一点去靠近梦想,不抱侥幸的奢望,用踏实浇灌,用努力证明,你可以!