diff --git a/templates/paperless-ngx.quadlet.j2 b/templates/paperless-ngx.quadlet.j2 index 378cc4f..8ac6c9b 100644 --- a/templates/paperless-ngx.quadlet.j2 +++ b/templates/paperless-ngx.quadlet.j2 @@ -1,6 +1,15 @@ [Unit] Description=Paperless-ngx +Requires=paperless-ngx-postgres.service +Requires=paperless-ngx-redis.service +Requires=paperless-ngx-tika.service +Requires=paperless-ngx-gotenberg.service +After=paperless-ngx-postgres.service +After=paperless-ngx-redis.service +After=paperless-ngx-tika.service +After=paperless-ngx-gotenberg.service + [Container] ContainerName=paperless-ngx Image=ghcr.io/paperless-ngx/paperless-ngx:{{ paperless_ngx_version }} @@ -24,7 +33,7 @@ Environment=PAPERLESS_DBPASS=paperless Environment=PAPERLESS_REDIS=redis://paperless-ngx-redis:6379 -PAPERLESS_CONSUMER_ENABLE_BARCODES={{ paperless_barcode_enable }} +Environment=PAPERLESS_CONSUMER_ENABLE_BARCODES={{ paperless_barcode_enable }} Network=traefik.network Network=paperless.network @@ -65,12 +74,3 @@ TimeoutStopSec=90 [Install] WantedBy=default.target - -Requires=paperless-ngx-postgres.service -Requires=paperless-ngx-redis.service -Requires=paperless-ngx-tika.service -Requires=paperless-ngx-gotenberg.service -After=paperless-ngx-postgres.service -After=paperless-ngx-redis.service -After=paperless-ngx-tika.service -After=paperless-ngx-gotenberg.service