def METHOD_NAME(conf: dict):
    """
    Update the relative paths of the directories like build context or bind volumes.
    :param conf: the Docker Compose configuration
    """
    for service in {"ingestion_server", "indexer_worker"}:
        conf["services"][service]["volumes"] = ["../:/ingestion_server"]
        conf["services"][service]["build"] = "../"
    upstream_db_build = conf["services"]["upstream_db"]["build"]["context"]
    conf["services"]["upstream_db"]["build"]["context"] = f"../../{upstream_db_build}"