def config(self): try: compose_output_tuple = get_config_from_options('.', self.options) # NOTE: for compatibility with docker-compose > 1.13 # services is always the second element services_list = compose_output_tuple[1] except conferrors.ConfigurationError as e: log.exit("Wrong compose configuration:\n{}", e) else: return services_list
def project_config(path): """ docker-compose config """ norm_path = normpath(path) return get_config_from_options(norm_path, dict())
def project_config(path): """ docker-compose config """ return get_config_from_options(path, dict())