Idea Delivered

Configuration files in config folder of CD micro services needs to be dynamically substituted

Configuration files in config folder of CD micro services needs to be dynamically substituted from environment variables in container. Like DB connection strings , storage path etc

Parents
  • This is already possible (in the latest releases). Customers can add their own placeholders if the configuration doesn't include placeholders already.

    For example:

    <Storage Type="persistence" Id="defaultdb" dialect="${dbtype}"
    Class="com.tridion.storage.persistence.JPADAOFactory">
    <Pool Type="jdbc" Size="${dbpoolsize:-5}" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120"/>
    <DataSource Class="${dbclass}">
    <Property Name="serverName" Value="${dbhost}"/>
    <Property Name="portNumber" Value="${dbport}"/>
    <Property Name="databaseName" Value="${dbname}"/>
    <Property Name="user" Value="${dbuser}"/>
    <Property Name="password" Value="${dbpassword}"/>
    </DataSource>
    </Storage>

Comment
  • This is already possible (in the latest releases). Customers can add their own placeholders if the configuration doesn't include placeholders already.

    For example:

    <Storage Type="persistence" Id="defaultdb" dialect="${dbtype}"
    Class="com.tridion.storage.persistence.JPADAOFactory">
    <Pool Type="jdbc" Size="${dbpoolsize:-5}" MonitorInterval="60" IdleTimeout="120" CheckoutTimeout="120"/>
    <DataSource Class="${dbclass}">
    <Property Name="serverName" Value="${dbhost}"/>
    <Property Name="portNumber" Value="${dbport}"/>
    <Property Name="databaseName" Value="${dbname}"/>
    <Property Name="user" Value="${dbuser}"/>
    <Property Name="password" Value="${dbpassword}"/>
    </DataSource>
    </Storage>

Children
No Data