Configuration through the environment

Configuration through the environment means providing an application's variable settings (keys, URLs, paths, log levels) through environment variables rather than in the code. The same artifact or image can thus run in test and in production, and secrets are never versioned.

Example

MODEL_PATH=/models/model.joblib uvicorn main:app

Related concepts

The whole glossary