Pure Blogを使用したブログのデプロイメント手法

#Tech

Pure Blogを使用したブログのデプロイメント手法 高セキュリティPure Bl

本記事は、静的サイトジェネレーターであるHugoからPHPベースのPure Blogへ移行した際のデプロイメント戦略を解説しています。

ローカル開発と本番環境の同期、そしてセキュリティの確保を最重要課題とし、DockerとDocker Composeを採用しました。

Pure BlogをApacheで動作させるためのカスタムDockerfileを作成し、必要なPHPモジュールをコンテナに組み込んでいます。

さらに、コンテナを非rootユーザーとして実行し、ファイルシステムを読み取り専用に設定するなど、厳格なセキュリティ対策を講じ、バインドマウントによって開発効率を維持しています。

原文の冒頭を表示(英語・3段落のみ)

My Blog Pure Blog Deployment

15 May 2026

As you might know, I recently migrated my blog from Hugo to Pure Blog. This was a nontrivial switch because Hugo is a static site generator (meaning it generates a bunch of HTML, CSS and JS that you just have to throw at a webserver and be done), whereas Pureblog is a PHP application with state, a login page and so on. So I'd like to take the time to write down how I deploy it and why. I realize that this is yet another "this is my blogging setup" post, but I also think that it just might be instructive to one or two other people out there.

※ 著作権に配慮し、引用は冒頭3段落までです。続きは元記事をご覧ください。

元記事を読む ↗