Precedence of Confluence env vars versus confluence.cfg.xml

Brad Solomon June 30, 2024

When a Confluence Server (running as a Docker container) defines a configuration value as both an environment variable and in confluence.cfg.xml, which takes precedence?

Example:

ATL_JDBC_URL environment variable is defined

- confluence.cfg.xml defines hibernate.connection.url

Which one will Confluence use? Does Confluence document this?

1 answer

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 1, 2024

Hi Brad

I think the environment variables will be used to generate the confluence.cfg.xml on the initial creation of the container. Once created it will keep using the xml file (unless you remove it from the container).

This is my experience from some time ago but I think you should test it to be sure.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events