Another unofficial image for Paheko, based on Alpine
5.8K
Up to version 1.3.14, this image looked like a behemoth, due to the inclusion of Chromium which was used to generate PDF files. Since then, DomPDF has proved more than sufficient for generating PDF files for an organisation with around 50 users and 200 accounting entries per year.
Finally, since version 1.3.21, the build libraries are no longer included in the final image, resulting in a smaller one.
You can get started with this simple docker-compose.yaml file, but don’t forget that you’ll need to use an upstream reverse proxy if you want to access it from the internet:
services:
paheko:
image: bololo/paheko:latest
restart: always
volumes:
- ./config.local.php:/var/www/paheko/config.local.php:ro
- paheko-data:/var/www/paheko/data
tmpfs:
- /var/www/paheko/data/cache:size=128m,noexec,nosuid,nodev
ports:
- 8080:80
volumes:
paheko-data: {}
Having a separated paheko-data should help you to save your database backups.
In your config.local.php, you can unleash the power of this image with:
...
// Upgrades should be handled by new docker image version
const ENABLE_UPGRADES = false;
// Command line to use mupdf to generate thumbnails
const DOCUMENT_THUMBNAIL_COMMANDS = ['mupdf'];
// Command line to use chromium to generate PDF documents (until 1.13.14)
// const PDF_COMMAND = 'chromium --no-sandbox --headless --disable-dev-shm-usage --autoplay-policy=no-user-gesture-required --no-first-run --disable-gpu --disable-features=DefaultPassthroughCommandDecoder --use-fake-ui-for-media-stream --use-fake-device-for-media-stream --disable-sync --print-to-pdf=%2$s %1$s';
// I moved plugins outside of /var/www/paheko/data (could be standard with 1.4)
const PLUGINS_ROOT = '/var/www/paheko/plugins';
...
Content type
Image
Digest
sha256:b3950a9e7…
Size
76.8 MB
Last updated
about 17 hours ago
docker pull bololo/paheko