From b1c0f105ab82ba6548af89c38e100d28caba6938 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 15 Jul 2024 12:13:21 +0200 Subject: [PATCH] fix: update docker compose pull command with --policy always --- app/Actions/Service/StartService.php | 2 +- app/Actions/Shared/PullImage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Actions/Service/StartService.php b/app/Actions/Service/StartService.php index 4b6a25dcc..b33a52748 100644 --- a/app/Actions/Service/StartService.php +++ b/app/Actions/Service/StartService.php @@ -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[] = 'echo Starting service.'; $commands[] = "echo 'Pulling images.'"; - $commands[] = 'docker compose pull'; + $commands[] = 'docker compose pull --policy always'; $commands[] = "echo 'Starting containers.'"; $commands[] = 'docker compose up -d --remove-orphans --force-recreate --build'; $commands[] = "docker network connect $service->uuid coolify-proxy >/dev/null 2>&1 || true"; diff --git a/app/Actions/Shared/PullImage.php b/app/Actions/Shared/PullImage.php index 4bd1cf453..d8d81d23b 100644 --- a/app/Actions/Shared/PullImage.php +++ b/app/Actions/Shared/PullImage.php @@ -15,7 +15,7 @@ public function handle(Service $resource) $commands[] = 'cd '.$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');