Merge branch 'next' of github.com:coollabsio/coolify into next

This commit is contained in:
Andras Bacsai 2024-06-14 14:48:14 +02:00
commit 5ec2cbdf19

View File

@ -839,7 +839,7 @@ public function saveComposeConfigs()
$commands[] = "cd $workdir"; $commands[] = "cd $workdir";
$json = Yaml::parse($this->docker_compose); $json = Yaml::parse($this->docker_compose);
foreach($json['services'] as $service => $config) { foreach ($json['services'] as $service => $config) {
$envs = collect($config['environment']); $envs = collect($config['environment']);
$envs->push("COOLIFY_CONTAINER_NAME=$service-{$this->uuid}"); $envs->push("COOLIFY_CONTAINER_NAME=$service-{$this->uuid}");
data_set($json, "services.$service.environment", $envs->toArray()); data_set($json, "services.$service.environment", $envs->toArray());