<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>YAML on Chen Kai Blog</title><link>https://www.chenk.top/zh/tags/yaml/</link><description>Recent content in YAML on Chen Kai Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Tue, 20 Jun 2023 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/zh/tags/yaml/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker 与容器（五）：Docker Compose——多容器应用</title><link>https://www.chenk.top/zh/docker-containers/05-docker-compose/</link><pubDate>Tue, 20 Jun 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/docker-containers/05-docker-compose/</guid><description>&lt;p>前几篇文章介绍了如何使用 &lt;code>docker run&lt;/code> 运行容器、用 &lt;code>-p&lt;/code> 参数映射端口、用 &lt;code>docker network create&lt;/code> 创建网络，以及用 &lt;code>-v&lt;/code> 挂载卷。现在试想一下：每次启动开发环境时，都要为 Web 服务器、API 后端、数据库、缓存和任务队列分别执行这些操作——这将变得极其繁琐。Docker Compose 将原本需要 20 多条命令完成的工作，简化为一个文件和一条命令：&lt;code>docker compose up&lt;/code>。&lt;/p></description></item></channel></rss>