Building and serving a production Hugo site with Docker and Nginx

Update, November 2026: I no longer publish with rsync --delete from a CI runner. The Hugo build fix below still applies. The blog is now built on my machine and uploaded as a versioned release that the server switches to in one step; see A self-host life. Moving away from the development server My original Compose service ran: hugo: image: klakegg/hugo:latest command: server volumes: - "./2023-blog/:/src" hugo server is useful during development, but a production static site does not need a long-running Hugo process. A cleaner design is: ...

November 16, 2024

Upgrading Gitea and correcting its reverse-proxy configuration

Why this was more than an image update My Gitea installation had been running version 1.18.0 for several years. Upgrading a stateful service is not equivalent to replacing a stateless web container: Gitea owns database migrations, configuration, repositories, keys, and user-generated data. Before changing the image, I backed up MariaDB and the persistent Gitea directories. I also recorded the current Compose configuration and container versions. That created both a recovery path and a baseline for post-upgrade comparison. ...

October 17, 2024