fix: update docker compose pull command with --policy always

This commit is contained in:
Andras Bacsai 2024-07-15 12:13:21 +02:00
parent 35cae1d4dc
commit b1c0f105ab
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public function handle(Service $service)
$commands[] = "docker network inspect $service->uuid >/dev/null 2>&1 || docker network create --attachable $service->uuid"; $commands[] = "docker network inspect $service->uuid >/dev/null 2>&1 || docker network create --attachable $service->uuid";
$commands[] = 'echo Starting service.'; $commands[] = 'echo Starting service.';
$commands[] = "echo 'Pulling images.'"; $commands[] = "echo 'Pulling images.'";
$commands[] = 'docker compose pull'; $commands[] = 'docker compose pull --policy always';
$commands[] = "echo 'Starting containers.'"; $commands[] = "echo 'Starting containers.'";
$commands[] = 'docker compose up -d --remove-orphans --force-recreate --build'; $commands[] = 'docker compose up -d --remove-orphans --force-recreate --build';
$commands[] = "docker network connect $service->uuid coolify-proxy >/dev/null 2>&1 || true"; $commands[] = "docker network connect $service->uuid coolify-proxy >/dev/null 2>&1 || true";

View File

@ -15,7 +15,7 @@ public function handle(Service $resource)
$commands[] = 'cd '.$resource->workdir(); $commands[] = 'cd '.$resource->workdir();
$commands[] = "echo 'Saved configuration files to {$resource->workdir()}.'"; $commands[] = "echo 'Saved configuration files to {$resource->workdir()}.'";
$commands[] = 'docker compose pull'; $commands[] = 'docker compose pull --policy always';
$server = data_get($resource, 'server'); $server = data_get($resource, 'server');