bololo/paheko

By bololo

Updated about 1 month ago

Another unofficial image for Paheko, based on php:apache on debian

Image
1

806

Potential security concerns

This image looks like a behemoth, due to inclusion of Chromium and mupdf-tools, for generating PDF and some thumbnails. So if you have some concerns about security, you should probably use an other image.

Usage

You can start with this simple docker-compose.yaml file, but keep in mind you have to use a reverse proxy in front of if you need to access it from the internet:

version: '3.1'
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
      - /var/www/paheko/data/cache
    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
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';
...

Docker Pull Command

docker pull bololo/paheko