This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| def extract_env_vars_from_docker_compose(compose_file_path): | |
| with open(compose_file_path, 'r') as file: | |
| content = file.read() | |
| return set(re.findall(r'\$\{(\w+)\}', content)) | |
| def load_existing_env_vars(env_file_path=".env"): | |
| env_vars = {} | |
| try: |