fix paperless
This commit is contained in:
@@ -2,20 +2,19 @@
|
|||||||
# slogan: Paperless-ngx is a community-supported open-source document management system that transforms your physical documents into a searchable online archive so you can keep, well, less paper.
|
# slogan: Paperless-ngx is a community-supported open-source document management system that transforms your physical documents into a searchable online archive so you can keep, well, less paper.
|
||||||
# logo: svgs/paperless.svg
|
# logo: svgs/paperless.svg
|
||||||
# port: 8000
|
# port: 8000
|
||||||
|
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: docker.io/library/redis:${REDIS_TAG:-7.2.5}
|
image: docker.io/library/redis:7.4
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- redis:/data
|
- paperless-redis:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
paperless:
|
paperless:
|
||||||
image: paperlessngx/paperless-ngx:${PAPERLESS_TAG:-2.10.2}
|
image: paperlessngx/paperless-ngx:latest
|
||||||
restart: unless-stopped
|
|
||||||
depends_on:
|
depends_on:
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -25,8 +24,8 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
volumes:
|
volumes:
|
||||||
- data:/usr/src/paperless/data
|
- paperless-data:/usr/src/paperless/data
|
||||||
- media:/usr/src/paperless/media
|
- paperless-media:/usr/src/paperless/media
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ./export
|
source: ./export
|
||||||
target: /usr/src/paperless/export
|
target: /usr/src/paperless/export
|
||||||
@@ -35,26 +34,10 @@ services:
|
|||||||
source: ./consume
|
source: ./consume
|
||||||
target: /usr/src/paperless/consume
|
target: /usr/src/paperless/consume
|
||||||
is_directory: true
|
is_directory: true
|
||||||
- type: bind
|
|
||||||
source: ./init-workaround.sh
|
|
||||||
target: /init-workaround.sh
|
|
||||||
content: |
|
|
||||||
#!/bin/bash
|
|
||||||
# Workaround for https://github.com/coollabsio/coolify/discussions/2572
|
|
||||||
# Paperless won't start if the PAPERLESS_URL ends with a path.
|
|
||||||
if [[ "$PAPERLESS_URL" == */ ]]; then
|
|
||||||
PAPERLESS_URL="${PAPERLESS_URL%/}"
|
|
||||||
export PAPERLESS_URL
|
|
||||||
fi
|
|
||||||
# Run the original entrypoint
|
|
||||||
# ENTRYPOINT CMD
|
|
||||||
exec /sbin/docker-entrypoint.sh /usr/local/bin/paperless_cmd.sh
|
|
||||||
entrypoint: ["/init-workaround.sh"]
|
|
||||||
environment:
|
environment:
|
||||||
- PAPERLESS_ADMIN_PASSWORD=$SERVICE_PASSWORD_PAPERLESS_ADMIN
|
- SERVICE_FQDN_PAPERLESS_8000
|
||||||
- PAPERLESS_ADMIN_USER=${PAPERLESS_ADMIN_USER:-admin}
|
- PAPERLESS_URL=$SERVICE_FQDN_PAPERLESS_8000
|
||||||
|
- PAPERLESS_ADMIN_PASSWORD=${SERVICE_PASSWORD_PAPERLESS}
|
||||||
|
- PAPERLESS_ADMIN_USER=${SERVICE_USER_PAPERLESS}
|
||||||
- PAPERLESS_REDIS=redis://redis:6379
|
- PAPERLESS_REDIS=redis://redis:6379
|
||||||
- PAPERLESS_SECRET_KEY=$SERVICE_PASSWORD_64_PAPERLESSSECRETKEY
|
- PAPERLESS_SECRET_KEY=${SERVICE_REALBASE64_64_PAPERLESS}
|
||||||
- PAPERLESS_URL=${PAPERLESS_URL:-$SERVICE_FQDN_PAPERLESS}
|
|
||||||
- SERVICE_FQDN_PAPERLESS
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user