知识卡片
Compose声明多服务
Compose 把应用依赖的多个容器化服务写在同一份 YAML 中。网关、API 注册表等组件可以一起启动和清理,便于让本机和流水线使用同一组定义。容器进程已启动后还可检查应用是否就绪。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Docker 与 Kubernetes E.3 Setting up services with Docker Compose · 查看原书依据
One of the tools that comes with Docker Desktop is Docker Compose. Docker Compose is a tool for managing multiple Docker containers at once. With Compose, you use a YAML file to configure the different containers for your application services, and you can start them all with a single command. You can start and stop services, view the status of
参考来源
- 位置:《Automating API Delivery APIOps with OpenAPI》《附录 E Docker 与 Kubernetes》(E.3 Setting up services with Docker Compose;来源项目 book-source,extracted/Automating API Delivery APIOps with OpenAPI/_epub-src/OEBPS/Text/appendix-e.xhtml)
- 结论依据:附录说明 Compose 的服务配置及书中网关与注册表示例。
- 原始内容:One of the tools that comes with Docker Desktop is Docker Compose. Docker Compose is a tool for managing multiple Docker containers at once. With Compose, you use a YAML file to configure the different containers for your application services, and you can start them all with a single command. You can start and stop services, view the status of