Lately, I’ve changed a service to be deployed on a Docker container instead of RPM packaging. As part of this migration, and based on The Twelve-Factor App, I used environment variables to pass the service some data that vary between different environments (development environment, QA, production). During this process, I encountered some problems and solving them encouraged me to share my insights.

In this post, I’m going to talk about environment variables usage in a Docker container and Compose files, the way we can pass those variables, and how to validate their values. …

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store