赞
踩
post一 . 配置mysql数据库持久化
1.mysql驱动下载: MySQL :: Download Connector/Jhttps://dev.mysql.com/downloads/connector/j/此处使用的是8.0.22版本的驱动,且数据库必须使用版本8,否则第二次启动报错
docker-compose.xml,
- version: '3'
- services:
- flowable-ui:
- image: flowable/flowable-ui:6.6.0
- container_name: flowable-ui6
- restart: always
- volumes:
- - "../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://192.168.10.112:3306/flowable7?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:
- - "9010:8080"
docker-compose up -d 启动容器
访问页面 ,登录账号默认admin testhttp://192.168.1.100:9010/flowable-ui/http://192.168.1.100:9010/flowable-ui/
二 安装flowable-rest 接口调用
配置mysql数据库持久化和上面一样
docker-compose.xml
- version: '3'
- services:
-
- flowable-rest:
- image: flowable/flowable-rest
- container_name: flowable-rest6
- restart: always
- volumes:
- - "../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://192.168.10.112:3306/flowable6?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:
- - "9011:8080"
docker-compose up -d 启动容器
访问页面,默认登录密码rest-admin/testhttp://192.168.1.100:9011/flowable-rest/docshttp://192.168.1.100:9011/flowable-rest/docspostman通过过地址栏传递账号密码请求接口,但是不安全,最好采用http授权方式
ui界面查看添加的用户
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。