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:
Dockerfile first builds war using grails 3.3.10
Load the generated war to tomcat 8 with jdk8
Create a mysql 5.7 database image and load it with user (database data are in a persistent volume)
Updated
Dockerfile
and addeddocker-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 theEHRSERVER_MYSQL_DB_BEHAVIOUR
toupdate
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:Regards