mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
fix: do not create duplicated networks
This commit is contained in:
parent
205995cabe
commit
828fec9448
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class StartService
|
|||
$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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue