extra_attributes->proxy) { ProxyTypes::TRAEFIK_V2->value => 'proxy', }; $container_name = 'coolify-proxy'; $output = instantRemoteProcess([ // Folder exists, in ~/projects/ 'if [ -d "projects/' . $folder_name . '" ]; then echo "true"; else echo "false"; fi', // Container of name is running <</dev/null)" == "true" ]] && echo "true" || echo "false" EOT, ], $server); return collect( explode(PHP_EOL, $output) )->every(fn ($output) => $output === 'true'); } }