Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 6fb856e

Browse files
committed
fix(gotenberg): use command flags
Gotenberg v7 does not use environment variables anymore, but command's flags. See: https://gotenberg.dev/docs/get-started/docker-compose#modules-properties
1 parent 5612ad0 commit 6fb856e

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

docker/compose/docker-compose.postgres-tika.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ services:
7777
gotenberg:
7878
image: gotenberg/gotenberg:7
7979
restart: unless-stopped
80-
environment:
81-
CHROMIUM_DISABLE_ROUTES: 1
80+
command:
81+
- "gotenberg"
82+
- "--chromium-disable-routes=true"
8283

8384
tika:
8485
image: apache/tika

docker/compose/docker-compose.sqlite-tika.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ services:
6666
gotenberg:
6767
image: gotenberg/gotenberg:7
6868
restart: unless-stopped
69-
environment:
70-
CHROMIUM_DISABLE_ROUTES: 1
69+
command:
70+
- "gotenberg"
71+
- "--chromium-disable-routes=true"
7172

7273
tika:
7374
image: apache/tika

docs/configuration.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,9 @@ requires are as follows:
446446
gotenberg:
447447
image: gotenberg/gotenberg:7
448448
restart: unless-stopped
449-
environment:
450-
CHROMIUM_DISABLE_ROUTES: 1
449+
command:
450+
- "gotenberg"
451+
- "--chromium-disable-routes=true"
451452
452453
tika:
453454
image: apache/tika

docs/troubleshooting.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,18 @@ You may experience these errors when using the optional TIKA integration:
106106
Gotenberg is a server that converts Office documents into PDF documents and has a default timeout of 30 seconds.
107107
When conversion takes longer, Gotenberg raises this error.
108108

109-
You can increase the timeout by configuring an environment variable for Gotenberg (see also `here <https://gotenberg.dev/docs/modules/api#properties>`__).
109+
You can increase the timeout by configuring a command flag for Gotenberg (see also `here <https://gotenberg.dev/docs/modules/api#properties>`__).
110110
If using docker-compose, this is achieved by the following configuration change in the ``docker-compose.yml`` file:
111111

112112
.. code:: yaml
113113
114114
gotenberg:
115115
image: gotenberg/gotenberg:7
116116
restart: unless-stopped
117-
environment:
118-
CHROMIUM_DISABLE_ROUTES: 1
119-
API_PROCESS_TIMEOUT: 60
117+
command:
118+
- "gotenberg"
119+
- "--chromium-disable-routes=true"
120+
- "--api-timeout=60"
120121
121122
Permission denied errors in the consumption directory
122123
#####################################################

0 commit comments

Comments
 (0)