加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 789 Bytes
一键复制 编辑 原始数据 按行查看 历史
山海 提交于 2024-06-12 14:59 . 优化使用说明

compose_update

介绍

通过post请求更新docker-compose

安装教程

直接下载可执行文件

使用说明

启动参数

Usage of ./compose_update_for_linux:
  -file string
        Path to the docker-compose.yaml file
  -listen string
        Port to listen on (default 5001) 
  -loglevel string
        Log level (debug, info, warn, error, fatal, panic) (default "info")
  -token string
        Authentication token
# 示例:
./compose_update_for_linux -token 123456 -file /root/deploy.yaml

请求参数

curl -X POST 'http://127.0.0.1:5002/update-service' \
  -H 'Authorization: Bearer 123456' \
  -H 'Content-Type: application/json' \
  -d '{
      "image": "reg.abc.com:1880/front:17",
      "service": "volunteer-h5-front"
}'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化