refactor: Update docker network creation in ApplicationDeploymentJob

This commit is contained in:
Andras Bacsai 2024-05-24 14:44:02 +02:00
parent b3800fc42e
commit 9248be2177

View File

@ -425,7 +425,7 @@ private function deploy_docker_compose_buildpack()
// TODO
} else {
$this->execute_remote_command([
"docker network create --attachable '{$networkId}' >/dev/null || true", "hidden" => true, "ignore_errors" => true
"docker network inspect '{$networkId}' >/dev/null 2>&1 || docker network create --attachable '{$networkId}' >/dev/null || true", "hidden" => true, "ignore_errors" => true
], [
"docker network connect {$networkId} coolify-proxy || true", "hidden" => true, "ignore_errors" => true
]);