no message

This commit is contained in:
kuaifan
2025-05-04 00:13:00 +08:00
parent c415ace453
commit 5414accc6c
5 changed files with 158 additions and 67 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Http\Controllers\Api;
use App\Module\Docker;
/**
* @apiDefine apps
*
* 应用相关接口
*/
class AppsController extends AbstractController
{
public function test()
{
$dirPath = base_path('docker/apps/MysqlExposePort');
$filePath = $dirPath . '/docker-compose.yml';
$savePath = $dirPath . '/docker-compose-local.yml';
return Docker::generateComposeYml($filePath, $savePath, [
'config' => [
'PROXY_PORT' => '33062',
]
]);
}
}