Docker部署 flowable 及调试

By | 2021-07-24

MarkDown

docker run -d --name=flowable --restart=always -p 8989:8080 flowable/all-in-one

The container starts the Flowable UI Spring Boot app.

用户,组,权限管理

Flowable IDM (http://localhost:8080/flowable-idm)

模型管理

Flowable Modeler (http://localhost:8080/flowable-modeler)

任务管理

Flowable Task (http://localhost:8080/flowable-task)

流程设置

Flowable Admin (http://localhost:8080/flowable-admin)

默认用户

user: admin
password: test

解决 Flowable 部署在服务器上后 重定向为 localhost 不能直接访问 admin task 问题

原因是它将重定向的 url 变成了 localhost:8080/flowable-idm 因为是部署在服务器上的,这个地址肯定是访问不了的 。

解决方法:

在配置文件中将 idm 的 url 改成 服务器对应的地址与端口;

以 root 的身份进入 flowable 对应的容器,并进入到 tomcat 对应的目录:

docker exec -it -u root 容器编号 sh

进入到 tomcat 目录下的 lib 目录并更改 application.properties 文件:

 vi application.properties

添加以下信息在文件底部

 idm.app.url=http://server-ip:port/flowable-idm

注意:http:// 后面的是你的服务器公网 IP 地址,端口为 服务器 与 容器 向对应的 端口,并非容器对应的端口