Containerized applications should be configurable without rebuilding the image — using environment variables, config files, and proper secrets management. Handling configuration and secrets correctly is important for security and for running the same image across environments.
Configuration via environment variables (12-factor)
docker run -e DATABASE_URL=postgres://... -e NODE_ENV=production myapp
docker run --env-file . myapp
