Array support for Docker config environments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tgr
    Junior Member
    • Jun 2025
    • 2

    #1

    Array support for Docker config environments

    Hello

    I'm running Espo in Docker, and would like to have it configured as far as possible upon container start. I read in the documentation about config environments, but they don't seem to support array values. Listed are string, integer, boolean, and null.

    I ran into this when trying to set the preferred telephone country codes. In config.php, these are set using an array, like below. Is there any way to set this using environment variables? Per the docs, the variable name should be ESPOCRM_CONFIG_PHONE_NUMBER_PREFERRED_COUNTRY_LIST , right? I've successfully set both numeric and string settings using this approach, but here I'm failing.

    Code:
    'phoneNumberPreferredCountryList' => [
        0 => 'us',
        1 => 'de'
    ]
    Documentation is here: Installation with Docker - EspoCRM Documentation
Working...