Camunda / JBOSS与MySQL

我想给我的Docker容器Camunda和JBOSS访问我在AWS RDS上的MySQL数据库。

我是否需要在我的容器中configuration文件:./standalone/configuration/standalone.xml,或者是否可以通过键入如下所示的内容来让我的容器访问我的MySQL数据库:

docker run -d --name camunda -p 8080:8080 \ -e DB_DRIVER=org.mysql.Driver \ -e DB_URL=jdbc:mysql://mysql-mycamunda.somebla.location.rds.amazonaws.com:3306/process-engine \ -e DB_USERNAME=camunda \ -e DB_PASSWORD=camunda \ camunda/camunda-bpm-platform:latest 

任何帮助真的aporeciated。 谢谢!

您可以使用此环境variables来configuration基本属性,如驱动程序,url,用户名和密码。 容器将根据这些值在启动时调整standalone.xml。 如果要configuration其他属性,则必须将自己的standalone.xml链接到容器中。 所以如果你不想configuration其他的东西,环境variables就足够了。 只要确保您的RDS实例可以从运行Camunda的节点到达。

Interesting Posts