I am new to Docker. My requirement is to create a docker file which should install Wildfly
server, add war file to Wildfly
, add custom property file (which contains db connection strings which will read by application)
My Docker file
FROM jboss/wildfly
Add application.properties /opt/jboss/
ADD spring_application.war /opt/jboss/wildfly/standalone/deployments/
application.properties
db_url = jdbc:mysql://**server host name**:**port**
db_username = **username**
db_password = **password**
Note: in the above file server host name, port, username, password should be dynamic
War file (spring rest application) will read parameters from application.properties
I am able successfully install Wildfly
and deployed application. Now i need to pass parameters in application.properties at runtime. Please help me if anyone has solution.