Skip to content

Commit

Permalink
fix: do not create duplicated networks
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Dec 8, 2023
1 parent 205995c commit 828fec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Actions/Service/StartService.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function handle(Service $service)
$commands[] = "cd " . $service->workdir();
$commands[] = "echo 'Saved configuration files to {$service->workdir()}.'";
$commands[] = "echo 'Creating Docker network.'";
$commands[] = "docker network create --attachable '{$service->uuid}' >/dev/null 2>&1 || true";
$commands[] = "docker network inspect $network >/dev/null 2>&1 || docker network create --attachable $network >/dev/null 2>&1 || true";
$commands[] = "echo 'Starting service {$service->name} on {$service->server->name}.'";
$commands[] = "echo 'Pulling images.'";
$commands[] = "docker compose pull";
Expand Down

0 comments on commit 828fec9

Please sign in to comment.