30 lines
676 B
Plaintext
30 lines
676 B
Plaintext
|
[Unit]
|
||
|
Description=Paperless-ngx Gotenberg
|
||
|
|
||
|
[Container]
|
||
|
ContainerName=paperless-ngx-gotenberg
|
||
|
Image=docker.io/gotenberg/gotenberg:{{ paperless_ngx_gotenberg_version }}
|
||
|
|
||
|
Network=paperless.network
|
||
|
|
||
|
NoNewPrivileges=true
|
||
|
DropCapability=All
|
||
|
|
||
|
#UserNS=keep-id
|
||
|
# Required to access the Podman Socket
|
||
|
#SecurityLabelDisable=true
|
||
|
PodmanArgs=--userns=keep-id --security-opt label=disable
|
||
|
|
||
|
Exec=gotenberg --chromium-disable-javascript=true --chromium-allow-list=file:///tmp/.*
|
||
|
|
||
|
[Service]
|
||
|
Restart=on-failure
|
||
|
# Restart Delay
|
||
|
RestartSec=30
|
||
|
# Allowed time for the service to start.
|
||
|
TimeoutStartSec=90
|
||
|
# Allowed time for the service to stop.
|
||
|
TimeoutStopSec=90
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|