We are attempting to design a deployment procedure that will allow us to maintain a single master Docker Image for our application that we can use to deploy to many customers. We are also planning on deploying to Tomcat but this is not a requirement nor set in stone at this point. The limitation I am running into is configuring the connection string to the database per container instance. When deploying a container you can pass through environment variables into the container however it does not appear that the context.xml file used in Tomcat to define the connection string is properly replacing the environment variables used in the file with the values defined in the environment. I have seen some reference on other forums stating this is known behavior and that the context.xml file is static and will not use environment variables.
Does any one have any experience with this or have any suggestions on how to accomplish what we are trying to do?