Skip to content

🐳 Docker containers to set up the OpenMRS Reference Application.

License

Notifications You must be signed in to change notification settings

psbrandt/openmrs-refapp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This repo is DEPRECATED ⚠️

Please see one of the following repos instead:


OpenMRS

OpenMRS Reference Application Docker (Debian Linux)

Docker containers for OpenMRS Reference Application

This repository contains the necessary infrastructure code and related resources required to compose and run Docker containers that start an instance of the OpenMRS Reference Application on Debian Linux.

💡 See the alpine branch for images that run on Alpine Linux.

For more information about the OpenMRS Reference Application visit openmrs.org.

Running

Prerequisites

Make sure you have Docker and Docker Compose installed.

Composition

To run containers use the prebuilt images, first get the compose file:

wget https://raw.githubusercontent.com/psbrandt/openmrs-refapp-docker/master/docker-compose-prebuilt.yml

Then pull the images:

docker-compose -f docker-compose-prebuilt.yml pull

Once the pull 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 -f docker-compose-prebuilt.yml up openmrs-refapp-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 Reference Application by executing the following:

docker-compose -f docker-compose-prebuilt.yml up

Access

To log into OpenMRS Reference Application, use the following details:

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

Building

Prerequisites

Make sure you have Docker and Docker Compose installed.

Setup

Start by cloning this repository:

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

Enter the directory and build the images:

cd openmrs-refapp-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-refapp-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 Reference Application by executing the following:

docker-compose up

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

Or if you are using the prebuilt images:

docker-compose -f docker-compose-prebuilt.yml stop
docker-compose -f docker-compose-prebuilt.yml start

License

MPL 2.0 w/ HD

About

🐳 Docker containers to set up the OpenMRS Reference Application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages