Example Using Docker Enviroment Variables in Python This is a very simple example of how to use the python-dotenv package in a python script / app that is deployed in docker. To test run the following command: docker compose up -d --build && docker compose logs -f