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: ...