protected function findDrupalDocroot()
    {
        /** @var EngineType $engine */
        $engine = $this->engineInstance();

        /** @var DrupalProjectType $project */
        $project = $this->projectInstance();

        if ($engine instanceof DockerEngineType && !$this->localhost) {
            return "/var/www/html/{$project->getInstallRoot(true)}";
        }

        return $project->getInstallPath();
    }