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";