Hacker News new | ask | show | jobs
by na4ma4 1261 days ago
You can use environment variables with error messages

https://docs.docker.com/compose/environment-variables/

   - `${VARIABLE:?err}` exits with an error message containing err if `VARIABLE` is unset or empty in the environment.
   - `${VARIABLE?err}` exits with an error message containing err if `VARIABLE` is unset in the environment.