Fix docker network connection in StartService.php
This commit is contained in:
parent
e1bc2cc406
commit
b01f6ac414
@ -22,7 +22,7 @@ public function handle(Service $service)
|
|||||||
$commands[] = "docker compose pull";
|
$commands[] = "docker compose pull";
|
||||||
$commands[] = "echo '####### Starting containers.'";
|
$commands[] = "echo '####### Starting containers.'";
|
||||||
$commands[] = "docker compose up -d --remove-orphans --force-recreate";
|
$commands[] = "docker compose up -d --remove-orphans --force-recreate";
|
||||||
$commands[] = "docker network connect $service->uuid coolify-proxy || true";
|
$commands[] = "docker network connect $service->uuid coolify-proxy || true";
|
||||||
$compose = data_get($service,'docker_compose',[]);
|
$compose = data_get($service,'docker_compose',[]);
|
||||||
$serviceNames = data_get(Yaml::parse($compose),'services',[]);
|
$serviceNames = data_get(Yaml::parse($compose),'services',[]);
|
||||||
foreach($serviceNames as $serviceName => $serviceConfig){
|
foreach($serviceNames as $serviceName => $serviceConfig){
|
||||||
|
Loading…
Reference in New Issue
Block a user