From df53e8beda197b22371c478ed6388db05fbce3cb Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sat, 22 Jun 2024 13:32:45 +0200 Subject: [PATCH] refactor: Update docker-compose generation to use multi-line literal block --- app/Models/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Service.php b/app/Models/Service.php index 795b9a421..c608e38dd 100644 --- a/app/Models/Service.php +++ b/app/Models/Service.php @@ -856,7 +856,7 @@ public function saveComposeConfigs() data_set($json, "services.$service.environment", $envs->toArray()); } - $this->docker_compose = Yaml::dump($json); + $this->docker_compose = Yaml::dump($json, 10, 2, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK); $docker_compose_base64 = base64_encode($this->docker_compose); $commands[] = "echo $docker_compose_base64 | base64 -d | tee docker-compose.yml > /dev/null";