<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Docker-Compose - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/docker-compose/</link><description>Docker-Compose - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Sun, 12 Jan 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/docker-compose/" rel="self" type="application/rss+xml"/><item><title>docker-compose 简介</title><link>https://rd163.visword.com/posts/docker-compose-intro/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/docker-compose-intro/</guid><description><![CDATA[<h2 id="docker-compose-中-volumes-参数说明" class="headerLink">
    <a href="#docker-compose-%e4%b8%ad-volumes-%e5%8f%82%e6%95%b0%e8%af%b4%e6%98%8e" class="header-mark"></a>docker-compose 中 volumes 参数说明</h2><p>docker-compose 通过 <code>volumes</code> 配置数据卷来实现数据持久化。常见有两种写法。</p>
<p><strong>第一种：本地路径直接挂载（bind mount）</strong></p>]]></description></item><item><title>Docker容器时间如何与宿主机同步问题解决方案</title><link>https://rd163.visword.com/posts/how-to-fix-docker-timezone/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/how-to-fix-docker-timezone/</guid><description>&lt;p>容器默认时区是 UTC（Coordinated Universal Time，协调世界时），而宿主机在国内一般配置为 &lt;code>Asia/Shanghai&lt;/code>，两者正好相差 8 小时——这是大多数 Java/Python/Go 应用日志时间、定时任务（cron）触发时间、数据库时间戳对不上的根本原因。本文先讲清楚根因，再给出五种常见的同步方案及取舍。&lt;/p></description></item></channel></rss>