refactor: Update docker-compose generation to use multi-line literal block
This commit is contained in:
parent
003f97af24
commit
df53e8beda
@ -856,7 +856,7 @@ public function saveComposeConfigs()
|
|||||||
data_set($json, "services.$service.environment", $envs->toArray());
|
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);
|
$docker_compose_base64 = base64_encode($this->docker_compose);
|
||||||
|
|
||||||
$commands[] = "echo $docker_compose_base64 | base64 -d | tee docker-compose.yml > /dev/null";
|
$commands[] = "echo $docker_compose_base64 | base64 -d | tee docker-compose.yml > /dev/null";
|
||||||
|
Loading…
Reference in New Issue
Block a user