Please see one of the following repos instead:
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.
Make sure you have Docker and Docker Compose installed.
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
To log into OpenMRS Reference Application, use the following details:
- Host:
DOCKER_HOST:8080/openmrs
- User: admin
- Pass: Admin123
Make sure you have Docker and Docker Compose installed.
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
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