diff --git a/paperless/README.md b/paperless/README.md new file mode 100644 index 0000000..2a4ec85 --- /dev/null +++ b/paperless/README.md @@ -0,0 +1,10 @@ +# paperless-ngx + +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. + +## Important step when deploying +Several environment variables have to be set: +- paperless_version +- postgres_version +Paperless specific: +- PAPERLESS_SECRET_KEY: A random string diff --git a/paperless/docker-compose.yaml b/paperless/docker-compose.yaml new file mode 100644 index 0000000..651c525 --- /dev/null +++ b/paperless/docker-compose.yaml @@ -0,0 +1,41 @@ +version: "3.4" +services: + broker: + image: docker.io/library/redis:7 + restart: unless-stopped + volumes: + - redisdata:/data + + db: + image: docker.io/library/postgres:${postgres_version:-15} + restart: unless-stopped + volumes: + - pgdata:/var/lib/postgresql/data + environment: + POSTGRES_DB: paperless + POSTGRES_USER: paperless + POSTGRES_PASSWORD: paperless + + webserver: + image: ghcr.io/paperless-ngx/paperless-ngx:${paperless_version:-latest} + restart: unless-stopped + depends_on: + - db + - broker + ports: + - "127.0.0.1:8082:8000" + volumes: + - /media/paperless/data:/usr/src/paperless/data + - /media/paperless/media:/usr/src/paperless/media + - /media/paperless/export:/usr/src/paperless/export + - /media/paperless/consume:/usr/src/paperless/consume + environment: + PAPERLESS_REDIS: redis://broker:6379 + PAPERLESS_DBHOST: db + PAPERLESS_SECRET_KEY: ${PAPERLESS_SECRET_KEY} + PAPERLESS_OCR_LANGUAGE: deu + PAPERLESS_ENABLE_HTTP_REMOTE_USER: true + +volumes: + redisdata: + pgdata: diff --git a/ports.md b/ports.md index 43ca0f5..f536d00 100644 --- a/ports.md +++ b/ports.md @@ -6,3 +6,4 @@ | 8000 | portainer | | 8080 | firefly-fints-importer | | 8081 | scrutiny | +| 8082 | paperless |