July 2020
Beginner
464 pages
12h 39m
English
Applications need to load their configuration from the environment they’re running in, which is usually a combination of environment variables and files read from disk. Docker creates that environment for apps running in containers, and it can set environment variables and construct a filesystem from many different sources. The pieces are all there to help you build a flexible configuration approach for your apps, so when you deploy to production you’re using the same image that passed all the test phases. You just need to do some work to bring the pieces together, setting up your app to merge configuration values from multiple places.
This chapter will take you through the recommended approach ...