Public Repository

Last pushed: a year ago
Short Description
This container uses the official Apache Tomcat Docker image (tomcat:7) and OpenClinica.
Full Description

Supported tags


OpenClinica is an open source software for Electronic Data Capture (EDC) for clinical research.
OpenClinica is a trademark of OpenClinica, LLC. The OpenClinica Trademark Policy can accessed here and the Terms of Use can accessed here


Start postgres persistent data folder

docker run --name oc-db-data -v /var/lib/postgresql/data postgres:9.5 true

Note: Postgres:latest (9.6.) currently doesn't work with OpenClinica.

Start postgres using the persistent data folder

docker run --name=oc-db -d --volumes-from oc-db-data -e POSTGRES_PASSWORD=POSTGRESSPASSWORDCHANGEME -p 5432:5432 postgres:9.5

Note: The port mapping is optional.
Note: Because of a Bug in (docker build), currently only container name "oc-db" works.

Initialize postgres

docker exec oc-db su postgres -c $'psql -c "CREATE ROLE clinica LOGIN ENCRYPTED PASSWORD \'clinica\' SUPERUSER NOINHERIT NOCREATEDB NOCREATEROLE" && psql -c "CREATE DATABASE openclinica WITH ENCODING=\'UTF8\' OWNER=clinica" && echo "host all  clinica  md5" >> $PGDATA/pg_hba.conf && /usr/lib/postgresql/$PG_MAJOR/bin/pg_ctl reload -D $PGDATA'

Note: Change the password 'clinica' if you like.

Start tmfev/openclinica persistent data folder

docker run --name=tmf-oc-data -v /tomcat/ "tmfev/openclinica" true

Pull additional files and setup environment variables

git clone OpenClinica
cd OpenClinica

Edit ".env.list" and set environment variables.

Start tmfev/openclinica using the persistent data folder

docker run --name=tmf-oc -h tmf-oc -d --volumes-from tmf-oc-data -p 81:8080 --env-file ./.env.list --link=oc-db:oc-db "tmfev/openclinica"

Access OpenClinica


Note: Because of initializing OpenClinica, first start is slow - so please be patient.


The creation of this container image was supported by TMF e.V.
A german description of OpenClinica is available via ToolPool Gesundheitsforschung right here.

Docker Pull Command