Configure wkhtmltopdf with Docker4drupal

Mykola Veryha
1 min readMay 24, 2020

I have docker4drupal

https://github.com/wodby/docker4drupal
https://github.com/wodby/docker4drupal/releases

and I want to install

wkhtmltoimage 0.12.5 (with patched qt)

into php container

By default we have

wkhtmltoimage 0.12.5

in the php container.

This container will help us to do that.
https://github.com/Surnet/docker-wkhtmltopdf

In the base directory where we have the docker-compose.yml file I created a new pdf directory.
In the pdf directory I created Dockerfile with the next content:

And update the docker-compose.yml file.

services:
php:
build: ./pdf
container_name: "${PROJECT_NAME}_php"

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response