# dockerze **Repository Path**: yunwe/dockerze ## Basic Information - **Project Name**: dockerze - **Description**: 接收post请求并创建容器,生成docker-compose - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-25 - **Last Updated**: 2023-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: Docker, 容器, docker-compose, Python ## README # dockerze #### 介绍 接收post请求并创建容器,生成docker-compose #### 使用说明 ```shell curl -X POST http://192.168.1.1/update_container -H "Content-Type: application/json" -d '{ #token必须相同 "token": "QP77ZUFXNO0PO9AWVPSYLS5WCXUSCA1NCL2BSLV8" #挂载地址,可选参数 "volumes": { "/mnt/logs":"/data/logs", "/mnt/conf":"/data/conf" }, #容器名称 "containerName":"testNginx", #网络模式,可选参数 "networkMode": "bridge", #镜像地址 "image": "nginx:latest", #环境变量,可选参数 "env": { "TZ": "Asia/Shanghai", "MYSQL_ROOT_PASSWORD": "Tuf#8kgc" }, #暴露端口,可选参数 "ports": { "80/tcp": 80, "9090/tcp":9090 }, #重启模式,可选参数 "restart":"always" #特权模式,可选参数 "privileged": "true" }' ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request