from os import getenv from dotenv import load_dotenv load_dotenv() config = { 'REDIS_HOST': getenv('REDIS_HOST', 'redis') }