+-- .env # a file containing variables for the compose file
+-- compose.yml # an example configuration for docker compose
+-- README.md
Note the init service should only be executed once, to create the client database
docker compose up -dRemoving the container after it has exited
docker compose downif you want to reuse an already existing client database
- comment out the init service in the
compose.yml
if you want to create a new client database:
- remove the client database from the config volume
- adjust the entry point of the init service in the
compose.ymlto match the following pattern:
entrypoint: ["moveCreateClientDB.sh", "--customerno", "<customerno>", "--orderno", "<orderno>", "--name", "<name>", "--protocolPath", "/opt/tolerant/protocols", "--mkdir"]- check out the section Later runs
- mount your configuration and data to the batch container
- adjust the command of the batch service in the
compose.ymlto match the following pattern:
command: "<configFilename>" "<projectId>" "<profileId>"To start with a different user please use the following instructions:
- create the following directories using the local user
- move-config
- move-data
- move-logs
- move-protocols
- use the fully qualified path of the above mentioned directories in the compose.yml
- comment in the user setting for the init and the batch service
- start the compose file
export UID=`id -u`; export GID=`id -g`; docker compose up -dexport UID=`id -u`; export GID=`id -g`; docker compose down