mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
28 lines
547 B
PHP
Executable File
28 lines
547 B
PHP
Executable File
<?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',
|
|
]
|
|
]);
|
|
}
|
|
}
|