- 跑镜像: docker run -d --name flowable -p 8080:8080 --privileged=true -it flowable/all-in-one
- 加驱动: docker cp /download/mysql-connector-java-8.0.22.jar flowable:/opt/tomcat/lib
- 进镜像: docker exec -it --user root flowable sh
- 改配置: vi conf/context.xml
shift+g移动到文件末尾 / 按几下左箭头到倒数第二行 / 回车再起一行 / 按i进入输入模式 / shift+ins粘贴
<Resource auth="Container"
name="jdbc/flowableDS"
type="javax.sql.DataSource"
description="JDBC DataSource"
url="jdbc:mysql://{宿主机ip}:3306/demo?allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=CTT&characterEncoding=UTF-8"
driverClassName="com.mysql.cj.jdbc.Driver"
username="root"
password="123456"
defaultAutoCommit="false"
initialSize="5"
maxWaitMillis="5000"
maxTotal="120"
maxIdle="5"/>
- 重启动: docker restart flowable
- 可访问: http://192.168.80.128:8080/flowable-idm