ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
173 stars 110 forks source link

Added better support for docker for production or dev #1084

Closed echosalik closed 3 years ago

echosalik commented 3 years ago

Updated Dockerfile and added docker-compose.yml that allow user to have a n easy setup experience. Minor changes in the docker-compose will be needed to make it work for prod environment like changing the EHRSERVER_MYSQL_DB_BEHAVIOUR to update or map a location of yml configuration.

application.yml also now respects environment variables for production/war environment.

Process followed by the docker-compose file:

  1. Dockerfile first builds war using grails 3.3.10
  2. Load the generated war to tomcat 8 with jdk8
  3. Create a mysql 5.7 database image and load it with user (database data are in a persistent volume)
  4. Start ehrsever

Regards

ppazos commented 3 years ago

@echosalik nice thanks