For quickly setting up and getting the Biomolecule Toolkit up and running on your computer, we recommend using Docker Compose.
Prerequisites:
Docker Compose is installed on your computer
A valid BMT license is available on your computer (for further options and details see license configuration)
A successful login to the ChemAxon Docker Hub (see Biomolecule Toolkit download page → DOCKER tab)
Here is an example Docker Compose file for spinning up BMT with MySQL 5.7: docker-compose.yml
The following variables are used inside the example docker-compose.yml
:
BMT_LICENSE_FOLDER
(default: ./
): the path to the folder on your computer containing the product license file (license.cxl
)
BMT_VERSION_TAG
(default: 19.25.0-0.8.0-ee57fa39
): the BMT docker image tag. For the list of available version tags, see Biomolecule Toolkit History of Changes
BMT_HTTP_PORT_ON_HOST
(default: 8080
): the port on your computer on which the BMT will be accessible (eg. http://localhost:8080)
MYSQL_DATA
(default: /tmp/mysql/
): a folder on your computer for persistent MySQL data. If you do not want to have your BMT data to be persistent, just delete the entire volumes
property under the db
service.
The variables above can be overridden by specifying their values in an environment file (must be named .env
and placed in the same folder with docker-compose.yml
). Here is an example .env
file:
.env
Once you have the docker-compose.yml
(and optionally the .env
) file with all the prerequisites fulfilled, you can start up both docker containers (BMT and MySQL server) from the folder containing the files by running:
To watch the docker container logs, use
The application is ready once at the bottom of the logs you can see something like this:
Stop and remove the containers by running:
The docker image exposes port 8080 for HTTP traffic. The API endpoints are available under either /bioreg-web/rest/
or /api/
. For more information about the endpoints refer to the API documentation at /swagger-ui.html.
For security reasons, these HTTP endpoints are disabled by default. In case they are required (for playing around with the application in a sandbox environment or demonstration purposes), they can be enabled by activating db_api
Spring profile (via environment variable: spring_profiles_active=db_api)
For information about obtaining a license, see the Biomolecule Toolkit download page.
Once having a valid product license, it can be specified via the environment variable CHEMAXON_LICENSE_URL
which can have
either a URL pointing to the license file served over HTTP
or a filesystem path to the license file (use Docker volume to attach a folder containing the license file to /data/bioreg-home
)
The database configuration can be provided via environment variables with the following defaults:
SSL configuration is possible via
spring_profiles_active
: must contain enforce-https
SERVER_SSL_KEYSTORE
: must point to the keystore file
SERVER_SSL_KEYSTOREPASSWORD
: the password for the keystore