def METHOD_NAME(docker_stack: dict, testing_environ_vars: dict) -> PostgresTestConfig:
    assert "pytest-simcore_postgres" in docker_stack["services"]
    pg_config: PostgresTestConfig = {
        "user": testing_environ_vars["POSTGRES_USER"],
        "password": testing_environ_vars["POSTGRES_PASSWORD"],
        "database": testing_environ_vars["POSTGRES_DB"],
        "host": get_localhost_ip(),
        "port": get_service_published_port(
            "postgres", testing_environ_vars["POSTGRES_PORT"]
        ),
    }
    return pg_config