查询镜像
docker search flowable-ui
拉取镜像
docker pull flowable/flowable-ui
使用默认数据库(默认H2数据库)
docker run --name flowable-ui \
-p 8080:8080 \
-d --restart=always \
flowable/flowable-ui
使用MySQL数据库
docker run --name flowable-ui -p 8080:8080 \
-e spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver \
-e spring.datasource.url="jdbc:mysql://192.168.193.129:3306/flowable?useUnicode=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true&useSSL=false" \
-e spring.datasource.username=root \
-e spring.datasource.password=root \
-v /home/mysql-connector-java-8.0.30.jar:/app/WEB-INF/lib/mysql-connector-java-8.0.30.jar \
-d --restart=always flowable/flowable-ui
然后浏览器测试:http://ip:8080/flowable-ui
默认用户名:admin 密码:test