<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Docker on heartnn的自留地</title><link>https://www.heartnn.com/tags/docker/</link><description>Recent content in Docker on heartnn的自留地</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><copyright>&amp;copy;2008-2022 heartnn的自留地</copyright><lastBuildDate>Sat, 18 Oct 2025 02:08:00 +0800</lastBuildDate><atom:link href="https://www.heartnn.com/tags/docker/index.xml" rel="self" type="application/rss+xml"/><item><title>doubanio反代</title><link>https://www.heartnn.com/2025/10/18/douban-reverse-proxy/</link><pubDate>Sat, 18 Oct 2025 02:08:00 +0800</pubDate><guid>https://www.heartnn.com/2025/10/18/douban-reverse-proxy/</guid><description>&lt;p>因为一直都是用一个电影信息查询脚本来更新电影信息，都是豆瓣上的信息，海报也是豆瓣的，但是最近几天img9.doubanio.com开始抽风，说什么&lt;code>错误代码：418 I'm a teapot&lt;/code>，完全不让白嫖了，好在现在AI强大，就撸了一个Cloudflare Workers的代码，但是这东西如果用超了毕竟是要收费的，好在VPS的流量足够多，就直接在VPS中反代就好了。&lt;/p>
&lt;p>以前都是用&lt;a href="https://github.com/nginx-proxy/nginx-proxy">nginx-proxy&lt;/a>和&lt;a href="https://nginxproxymanager.com/">Nginx Proxy Manager&lt;/a>，最多用过&lt;a href="https://github.com/lucaslorentz/caddy-docker-proxy">caddy-docker-proxy&lt;/a>，但是这几个东西的主要作用是代理本地的Docker容器，NPM凑合能用，但是搞不定Referer，AI问了一圈，最后自己撸Caddyfile才是王道（主要是Nginx需要自己搞定证书，有点繁琐）。&lt;/p></description></item><item><title>在Daocloud安装自定义的Ghost Docker</title><link>https://www.heartnn.com/2016/03/19/setup-custom-ghost-docker-on-daocloud/</link><pubDate>Sat, 19 Mar 2016 10:12:35 +0800</pubDate><guid>https://www.heartnn.com/2016/03/19/setup-custom-ghost-docker-on-daocloud/</guid><description>&lt;p>Daocloud默认赠送2x的容器，正好运行一个Ghost博客，但是Daocloud官方提供的Ghost的安装不能自定义模版和配置。所以我们必须在Docker里做一些更改。&lt;/p>
&lt;p>本人对Docker也是小白一枚，所以过程是比较复杂的，但结果很简单。&lt;/p>
&lt;p>首先准备一个Git仓库，最好是私密的，因为会储存个人配置和修改过的模版。&lt;/p>
&lt;p>首先是修改配置，这里不用Daocloud的持久化存储(因为会占用容器)，数据库使用Daocloud提供的MySQL，附件使用七牛云，邮件系统使用Mailgun，&lt;code>production&lt;/code>部分配置如下：&lt;/p></description></item></channel></rss>