Function generate_compose_config
Source pub fn generate_compose_config(
apps: &[AppConfig],
network_name: &str,
nginx_host_port: u16,
env_files: &HashMap<String, String>,
) -> Result<String>
Expand description
生成docker-compose.yml配置
apps: 应用配置列表
network_name: Docker网络名称
nginx_host_port: nginx监听的主机端口
env_files: 环境变量文件路径映射(应用名称 -> .env文件相对路径)
返回生成的docker-compose.yml内容