refactor: Update docker-compose generation to use multi-line literal block

This commit is contained in:
Andras Bacsai 2024-06-22 13:32:45 +02:00
parent 003f97af24
commit df53e8beda

View File

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