public static function getUri() {
        $nginx_port = Docker::getContainerPort(Compose::getContainerName(self::projectName(), 'nginx'), 80);
        if (!$nginx_port) {
            throw new \RuntimeException("nginx container is not running");
        }
        return "http://localhost:$nginx_port";
    }
public static function getUri() {
        $nginx_port = Docker::getContainerPort(Compose::getContainerName(self::projectName(), 'nginx'), 80);
        if (!$nginx_port) {
            throw new \RuntimeException("nginx container is not running");
        }
        return "http://localhost:$nginx_port";
    }
public static function getUri ( ) { $ nginx_port = Docker :: getContainerPort ( Compose :: getContainerName ( self :: projectName ( ) , 'nginx' ) , 80 ) ; if ( ! $ nginx_port ) { throw new \ RuntimeException ( "nginx container is not running" ) ; } return "http://localhost:$nginx_port" ; }
Gets the uri to access the site.

@return string

@throws \RuntimeException
Thrown when the nginx container is not available.
Gets the uri to access the site .