freqtrade_origin/freqtrade/configuration/detect_environment.py

9 lines
163 B
Python
Raw Permalink Normal View History

import os
def running_in_docker() -> bool:
"""
Check if we are running in a docker container
"""
2024-05-12 14:29:24 +00:00
return os.environ.get("FT_APP_ENV") == "docker"