xenocrat / chyrp-lite

An ultra-lightweight blogging engine, written in PHP.
https://chyrplite.net/
BSD 3-Clause "New" or "Revised" License
402 stars 42 forks source link

Overhaul Docker implementation #275

Open KenHV opened 1 week ago

KenHV commented 1 week ago

Earlier, the Docker container stored the entire application data in a volume, which is not how Docker should work. config.php.json and SQLite (if used) now go in the data volume. Uploads are stored in a separate volume.

Updates are handled seamlessly using a script. There is no need to run upgrade.php manually.

The container now runs under the user www-data to ensure security. PHP config has been changed to production config.

Issues with build cache due to improper use of apt have been resolved. The image is now smaller.

A Docker Compose file has been added with instructions. Instructions are also included in the README file.

KenHV commented 1 week ago

Upgrading to newer releases is still a hassle for now. I'll try to make this seamless.

KenHV commented 6 days ago

If you'd like, I can add a GitHub workflow that will build Docker images automatically when a new version is released. It'll save a lot of time for users.

xenocrat commented 4 days ago

Thanks for this PR. I will try to find time to have a proper look at it soon!