Skip to content

psbrandt/openmrs-platform-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenMRS

OpenMRS Platform Docker

Docker containers for OpenMRS Platform

This repository contains the necessary infrastructure code and related resources required to compose and run Docker containers that start an instance of the OpenMRS Platform.

For more information about the OpenMRS Platform visit openmrs.org.

Prerequisites

Make sure you have Docker and Docker Compose installed.

Setup

Start by cloning this repository:

git clone https://github.com/psbrandt/openmrs-platform-docker.git

Enter the directory and build the images:

cd openmrs-platform-docker
docker-compose build

Once the build is complete, you'll have to make sure that the mysql container is initialized due to this limitation. Do this by running the following:

docker-compose up openmrs-platform-mysql

When it's done you can press ctrl+c to stop the container. You will only have to do this the first time.

After this you can run the OpenMRS Platform by executing the following:

docker-compose up

Access

To log into OpenMRS Platform, use the following details:

  • Host: DOCKER_HOST:8080/openmrs
  • User: admin
  • Pass: Admin123

Documentation

The OpenMRS Platform API docs can be found here.

Troubleshooting

Could not create connection to database server. Attempted reconnect 3 times. Giving up.

Since it's not currently possible to order the startup of Docker containers, sometimes the Tomcat container will start before the MySQL container. As a result, OpenMRS might not get a database connection on start up. To work around this, stop the containers and restart them:

docker-compose stop
docker-compose start

License

MPL 2.0 w/ HD © OpenMRS Inc.