I am just starting to investigate Docker options and one question that I was not able to answer is how to control the application in different environments.
For example, in my application environment drives log levels, mapped routing S3 bucket name, etc…
At this point, this all managed by a deployment script that modifies Nginx config to execute different index file.
What are the best practised to manages such thing with Docker and in particular on AWS?
Note: AWS Elastic Beanstock expects that the image will be fully built to be deployable. Of coarse, it is possible to build the app for production, but how do I test that built before the deployment?
I found this topic here: Environment-dependent commands in Dockerfile?, but it was not answered.