Skip to content
Permalink
main
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

COmanage Registry Volumes and Data Persistence

COmanage Registry requires a relational database. See other documentation in this repository for examples of how to orchestrate a COmanage Registry container together with an container providing a relational database service, and for details on how to configure the COmanage Registry container to connect to the database.

Additionally COmanage Registry requires a persistent directory into which a few files and a specific directory structure needed by COmanage Registry will be written.

The persistent directory must be provided either using a Docker volume or a bind mount.

The directory path inside the container that must be mounted is /srv/comanage-registry/local.

For example to use a bind mount from the local Docker engine host:

sudo mkdir -p /opt/comanage-registry-local

and then when instantiating the container

docker run -d \
  --name comanage-registry \
  -v /opt/comanage-registry-local:/srv/comanage-registry/local \
  -p 80:80 \
  -p 443:443 \
  comanage-registry:4.0.2-shibboleth-sp-1

After the image is instantiated into a container for the first time the entrypoint script will create the necessary directory structure along with the database.php, email.php, and other necessary configuration files using database, email server, and other details found in environment variables.

After the first instantiation of the container later restarts will not overwrite database, email, or any other details in the persistent directory, even if the values for the environment variables change.