0

我有一个使用 thorntail、postgres DB 的 java 应用程序,我想通过 docker 映像将此应用程序部署到 openshift。

我已经使用 docker 映像测试了成功的构建应用程序并部署到 minishift 和外部 postgres 数据库。

现在我想在 openshift 中使用 postgres 而不是外部 postgres

但我不知道如何在project-defaults.yml中为 openshift 指定 postgres 连接

这是我的 project-defaults.yml:它不适用于 openshift 中的 postgres

thorntail:
  datasources:
    data-sources:
      postgres_tenancy:
        driver-name: mypostgres
        connection-url: postgresql://postgresql:5432/$POSTGRESQL_DATABASE
        user-name: $POSTGRESQL_USER
        password: $POSTGRESQL_PASSWORD
    jdbc-drivers:
      mypostgres:
        driver-class-name: org.postgresql.Driver
        xa-datasource-name: org.postgresql.xa.PGXADataSource
        driver-module-name: org.postgresql

有人有什么想法吗?

4

0 回答 0