Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Environment Variables Common to All Images

The environment variables detailed below apply to all COmanage Registry images in this repository.

Using Files to Inject Secrets

The COmanage Registry images support the convention of an associated environment variable ending with _FILE to indicate a path relative to the container from which the value for an environment variable should be read.

For example if the environment variable COMANAGE_REGISTRY_DATABASE_USER_PASSWORD_FILE exists and its value is the path to a readable file, then the contents of the file will be read into the environment variable COMANAGE_REGISTRY_DATABASE_USER_PASSWORD.

If both an environment variable and the associated _FILE environment variable are defined the associated _FILE environment variable takes precedence, provided that the file it points to exists and is readable.

Environment Variables

COMANAGE_REGISTRY_ADMIN_GIVEN_NAME

  • Description: Given name for first platform administrator
  • Required: yes
  • Default: Registry
  • Example: Julia
  • Note: [1]

COMANAGE_REGISTRY_ADMIN_FAMILY_NAME

  • Description: Family name for first platform administrator
  • Required: yes
  • Default: Admin
  • Example: Janssen
  • Note: [1]

COMANAGE_REGISTRY_ADMIN_USERNAME

  • Description: Username name for first platform administrator
  • Required: yes
  • Default: registry.admin
  • Example: julia.janseen@my.org
  • Note: [1]

COMANAGE_REGISTRY_DATASOURCE

  • Description: database type
  • Required: yes
  • Default: Database/Postgres
  • Example: Database/Mysql
  • Note: [2]

COMANAGE_REGISTRY_DATABASE

  • Description: database name
  • Required: yes
  • Default: registry
  • Example: comanage_registry
  • Note: [2]

COMANAGE_REGISTRY_DATABASE_HOST

  • Description: database server host
  • Required: yes
  • Default: comanage-registry-database
  • Example: database-server.my.org
  • Note: [2]

COMANAGE_REGISTRY_DATABASE_USER

  • Description: database username
  • Required: yes
  • Default: registry_user
  • Example: comanage-user
  • Note: [2]

COMANAGE_REGISTRY_DATABASE_USER_PASSWORD

  • Description: database user password
  • Required: yes
  • Default: password
  • Example: O5Yhtt6TLOxNjo93fmB9
  • Note: [2]

COMANAGE_REGISTRY_EMAIL_FROM

  • Deprecated. Use the combination of COMANAGE_REGISTRY_EMAIL_FROM_EMAIL and COMANAGE_REGISTRY_EMAIL_FROM_NAME instead.

COMANAGE_REGISTRY_EMAIL_FROM_EMAIL

  • Description: Default email "From" for emails sent by COmanage Registry. This is the email part of the sender array.
  • Required: yes
  • Default: you@localhost
  • Example: registry@my.org
  • Note: The name part of the sender array is specified using COMANAGE_REGISTRY_EMAIL_FROM_NAME. When used together the resulting PHP is
    '${COMANAGE_REGISTRY_EMAIL_FROM_EMAIL}' => '${COMANAGE_REGISTRY_EMAIL_FROM_NAME}'
    
  • Note: [3]
  • Note: This is a CakePHP email configuration value.

COMANAGE_REGISTRY_EMAIL_FROM_NAME

  • Description: Default email "From" for emails sent by COmanage Registry. This is the name part of the sender array.

  • Required: yes

  • Default: none

  • Example: Registry

  • Note: The email part of the sender array is specified using COMANAGE_REGISTRY_EMAIL_FROM_EMAIL. When used together the resulting PHP is

    '${COMANAGE_REGISTRY_EMAIL_FROM_EMAIL}' => '${COMANAGE_REGISTRY_EMAIL_FROM_NAME}'
    
  • Note: [3]

  • Note: This is a CakePHP email configuration value.

COMANAGE_REGISTRY_EMAIL_TRANSPORT

  • Description: Email transport
  • Required: no
  • Default: none
  • Example: Smtp
  • Note: [3]

COMANAGE_REGISTRY_EMAIL_HOST

  • Description: Email server host
  • Required: no
  • Default: none
  • Example: tls://smtp.gmail.com
  • Note: [3]

COMANAGE_REGISTRY_EMAIL_PORT

  • Description: Email server port
  • Required: no
  • Default: none
  • Example: 465
  • Note: [3]

COMANAGE_REGISTRY_EMAIL_ACCOUNT

COMANAGE_REGISTRY_EMAIL_ACCOUNT_PASSWORD

  • Description: Email server account password
  • Required: no
  • Default: none
  • Example: Sw5x71ToBHBEr4VqpRxD
  • Note: [3]

COMANAGE_REGISTRY_ENABLE_PLUGIN

  • Description: Comma separated list of non-core plugins to enable
  • Required: no
  • Default: none
  • Example: IdentifierEnroller,LdapIdentifierValidator,MailmanProvisioner

COMANAGE_REGISTRY_NO_DATABASE_CONFIG

  • Description: Do not write a database configuration file if environment variable is set.
  • Required: no
  • Default: not set
  • Example: 1
  • Note: If the environment variable is set to any value then the entrypoint script will not attempt to write the database configuration file database.php. This environment variable is often used with the comanage-registry-cron image when it shares a bind mounted directory with the COmanage Registry image.

COMANAGE_REGISTRY_NO_EMAIL_CONFIG

  • Description: Do not write an email configuration file if environment variable is set.
  • Required: no
  • Default: not set
  • Example: 1
  • Note: If the environment variable is set to any value then the entrypoint script will not attempt to write the email configuration file email.php. This environment variable is often used with the comanage-registry-cron image when it shares a bind mounted directory with the COmanage Registry image.

COMANAGE_REGISTRY_SECURITY_SALT

  • Description: Security salt used when hashing. Must be 40 or more characters from the set [0-9a-zA-Z].
  • Required: no
  • Default: automatically generated if not provided
  • Example: VuUq2mnXC0Cco8uKcjO1rDdP2lVC3lgP970QP2XY
  • Note: If present the environment variable is read the first time the container is started and written to the persistent volume (or bind mount) in the configuration file security.salt. Later changes to the environment variable are not reflected in the file which must be edited directly. If not using a persistent volume or bind mount or otherwise providing the file security.salt then you must configure this environment variable in order that the same value persists between container restarts.

COMANAGE_REGISTRY_SECURITY_SEED

  • Description: Security seed used for encrypt/decrypt
  • Required: no
  • Default: automatically generated if not provided
  • Example: 47072649794709969916818407654
  • Note: If present the environment variable is read the first time the container is started and written to the persistent volume (or bind mount) in the configuration file security.seed. Later changes to the environment variable are not reflected in the file which must be edited directly. If not using a persistent volume or bind mount or otherwise providing the file security.seed then you must configure this environment variable in order that the same value persists between container restarts.

COMANAGE_REGISTRY_VIRTUAL_HOST_FQDN

  • Description: Apache HTTP Server virtual host name
  • Required: no
  • Default: Obtained from inspecting HTTPS x509 certificate file if present, otherwise "unknown"
  • Example: registry.my.org

HTTPS_CERT_FILE

  • Description: path to file containing x509 certificate for HTTPS
  • Required: no
  • Default: automatically generated self-signed certificate
  • Example: /run/secrets/https_cert_file
  • Note: The path is relative to the running container.

HTTPS_PRIVKEY_FILE

  • Description: path to file containing x509 private key for HTTPS
  • Required: no
  • Default: automatically generated private key
  • Example: /run/secrets/https_privkey_file
  • Note: The path is relative to the running container.

SERVER_NAME

  • Deprecated. Use COMANAGE_REGISTRY_VIRTUAL_HOST_FQDN.

[1]: The environment variable is read the first time the container is started and saved to the COmanage Registry database. Later changes to the environment variable are not reflected in the database state.

[2]: The environment variable is read when the container starts and written to the configuration file database.php if the file does not already exist, either because it has been mounted using a persistent volume (or bind mount) or has been added when using the image as a base to build a new image.

[3]: The environment variable is read when the container starts and written to the configuration file email.php if the file does not already exist, either because it has been mounted using a persistent volume (or bind mount) or has been added when using the image as a base to build a new image.