2024-06-18 23:00:03 +02:00
|
|
|
services:
|
|
|
|
paperless:
|
|
|
|
container_name: paperless
|
|
|
|
image: ghcr.io/paperless-ngx/paperless-ngx:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- traefik
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
volumes:
|
2024-08-06 11:10:12 +02:00
|
|
|
- /mnt/sync/paperless/data:/usr/src/paperless/data
|
|
|
|
- /mnt/sync/paperless/media:/usr/src/paperless/media
|
|
|
|
- /mnt/sync/paperless/export:/usr/src/paperless/export
|
|
|
|
- /mnt/sync/paperless/consume:/usr/src/paperless/consume
|
2024-06-18 23:00:03 +02:00
|
|
|
environment:
|
|
|
|
- PAPERLESS_REDIS=redis://redis:6379
|
|
|
|
- PAPERLESS_DBENGINE=postgresql
|
|
|
|
- PAPERLESS_DBHOST=postgres
|
2024-09-10 14:23:43 +02:00
|
|
|
- PAPERLESS_DBPORT=5432
|
2024-06-18 23:00:03 +02:00
|
|
|
- PAPERLESS_DBNAME=paperless
|
|
|
|
- PAPERLESS_DBUSER=postgres
|
|
|
|
- PAPERLESS_DBPASS=${POSTGRES_PASSWORD}
|
|
|
|
- PAPERLESS_URL=https://paperless.bhasher.com
|
|
|
|
- PAPERLESS_SECRET_KEY=${PAPERLESS_SECRET_KEY}
|
|
|
|
- PAPERLESS_TIME_ZONE=Europe/Paris
|
|
|
|
- PAPERLESS_OCR_LANGUAGE=fra
|
|
|
|
- PAPERLESS_USE_X_FORWARD_HOST=true
|
|
|
|
- PAPERLESS_USE_X_FORWARD_PORT=true
|
|
|
|
- PAPERLESS_PROXY_SSL_HEADER=["HTTP_X_FORWARDED_PROTO", "https"]
|
|
|
|
- PAPERLESS_TASK_WORKERS=4
|
2024-06-30 11:41:41 +02:00
|
|
|
- PAPERLESS_SOCIALACCOUNT_PROVIDERS=${PAPERLESS_PROVIDERS}
|
|
|
|
- PAPERLESS_APPS=allauth.socialaccount.providers.openid_connect
|
|
|
|
- PAPERLESS_DISABLE_REGULAR_LOGIN=true
|
2024-06-18 23:00:03 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.paperless.rule=Host(`paperless.bhasher.com`)"
|
2024-11-11 14:41:42 +01:00
|
|
|
#- "traefik.http.routers.paperless.service=paperless-service"
|
2024-06-18 23:00:03 +02:00
|
|
|
- "traefik.http.routers.paperless.entrypoints=internalsecure"
|
|
|
|
- "traefik.http.services.paperless.loadbalancer.server.port=8000"
|
|
|
|
- "traefik.http.routers.paperless.tls=true"
|
|
|
|
- "traefik.http.routers.paperless.tls.certresolver=http"
|
2024-11-11 14:41:42 +01:00
|
|
|
#- "traefik.http.routers.paperlessshare.rule=Host(`paperless.bhasher.com`) && (PathPrefix(`/share/`))"
|
|
|
|
#- "traefik.http.routers.paperlessshare.service=paperlessshare-service"
|
|
|
|
#- "traefik.http.routers.paperlessshare.entrypoints=externalsecure"
|
|
|
|
#- "traefik.http.services.paperlessshare.loadbalancer.server.port=8000"
|
|
|
|
#- "traefik.http.routers.paperlessshare.tls=true"
|
|
|
|
#- "traefik.http.routers.paperlessshare.tls.certresolver=http"
|
2024-06-18 23:00:03 +02:00
|
|
|
networks:
|
2024-09-10 14:23:43 +02:00
|
|
|
#- auth
|
2024-06-18 23:00:03 +02:00
|
|
|
- storage
|
|
|
|
- external
|