freqtrade_origin/freqtrade/configuration/detect_environment.py

9 lines
163 B
Python

import os
def running_in_docker() -> bool:
"""
Check if we are running in a docker container
"""
return os.environ.get('FT_APP_ENV') == 'docker'