docker mirth connect image with TAGS FOR EACH VERSION
1.7K
Mirth Connect Docker image with properties read from environment variables.
Mirth® Connect makes it easy to transform non-standard data into standard formats and to monitor multiple interfaces. Available to use for free under an open source license or with our commercial license, where additional enterprise features and support are at your disposal, it’s designed for seamless healthcare message integration, and is well-tested, delivering the advantages and innovation that comes with a large user base.
This image forks https://github.com/brandonstevens/mirth-connect-docker and adds pulling in of environment variables into the mirth.properties file at startup. This way you can set your database through environment variables. Only the environment variables $M_* set in mirth.properties_env will be pulled off of the environment and substituted using the envsubst tool.
Mirth Connect Server contains the back-end for the management interface and the integration engine component, which performs message filtering, transformation, and transmission.
$ docker run -d -P tsystem/mirth-connect
Create a configuration file for Mirth Connect Server from the default configuration file in SVN. Update the database properties to connect to a remote MySQL instance.
$ svn export https://svn.mirthcorp.com/connect/trunk/server/conf/mirth.properties ~/mirth.properties
$ vim mirth.properties
...
database = mysql
database.url = jdbc:mysql://prod-cluster.us-west-2.rds.amazonaws.com:3306/mirthdb
database.username = mirth
database.password = mirth
Launch the container and mount the configuration file:
$ docker run -d -P \
-e M_DATABASE \
-e M_DATABASE_USER \
-e M_DATABASE_PASSWORD \
-e M_DATABASE_URL \
tsystem/mirth-connect
There are many ways to set environment variables (explicitly, copied from your environment, from a separate file) using -e, --env, --env-file
this is for local development only do not use Docker for persistent data
docker-compose.yml file.docker-compose up
docker-compose.yml file will be copied over to the mirth.properties file on startup. This only supports a select subset of environment variables. If you want to set other variables through the environment you'll have to either submit a PR and wait for someone to republish to docker hub or fork the project, add environment variables to mirth.properties_env and follow the Docker Hub publishing instructions below.In addition to the graphical Mirth Administrator, Mirth provides a command line interface known as the Mirth Shell.
First, get the name of the running Mirth Connect Server container:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bf63b2b30e2c brandonstevens/mirth-connect "java -jar mirth-ser 26 minutes ago Up 26 minutes 0.0.0.0:32769->8080/tcp, 0.0.0.0:32768->8443/tcp fervent_torvalds
Using the name, link the Mirth Connect Server container to the Mirth Shell container:
$ docker run -it --link fervent_torvalds:mirth-connect brandonstevens/mirth-connect java -jar mirth-cli-launcher.jar -a https://mirth-connect:8443 -u admin -p admin
One time only:
docker login (with your hub.docker.com credentials on your terminal)Each time you want to publish:
docker build --build-arg MIRTH_CONNECT_VERSION=3.5.1.b194 -t tsystem/mirth-connect:3.5.1 .
build-arg MIRTH_CONNECT_VERSION overwrites the version specified in the Dockerfile. This way you don't need to change the Dockerfile every time there is a new version of Mirth-t ... tags this image. the current directory with the Dockerfile in itdocker tag tsystem/mirth-connect:3.5.1 tsystem/mirth-connect:3docker tag tsystem/mirth-connect:3.5.1 tsystem/mirth-connect:3.5docker tag tsystem/mirth-connect:3.5.1 tsystem/mirth-connect:latestdocker push tsystem/mirth-connect:3.5.1docker push tsystem/mirth-connect:3.5docker push tsystem/mirth-connect:3docker push tsystem/mirth-connect:latestContent type
Image
Digest
Size
273.6 MB
Last updated
about 7 years ago
docker pull tsystem/mirth-connect