'how to run docker container with external application properties file?

How to run docker containers with external application properties files? & how to add properties file into the docker volume ? how to mount the volume with another container?.



Solution 1:[1]

This 2 links contain all you want.
Check is out first How to use external application properties file

Then, learn how to manage dockerFile How to initial docker and do volume

After that, just include the properties file in docker image or mount volumn of your local and execute the application with a bit extra command.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 paranaaan