# docker-compose file for running paperless from the Docker Hub.
# This file contains everything paperless needs to run.
# Paperless supports amd64, arm and arm64 hardware.
#
# All compose files of paperless configure paperless in the following way:
#
# - Paperless is (re)started on system boot, if it was running before shutdown.
# - Docker volumes for storing data are managed by Docker.
# - Folders for importing and exporting files are created in the same directory
# as this file and mounted to the correct folders inside the container.
# - Paperless listens on port 8000.
#
# SQLite is used as the database. The SQLite file is stored in the data volume.
#
# To install and update paperless with this file, do the following:
#
# - Copy this file as 'docker-compose.yml' and the files 'docker-compose.env'
# and '.env' into a folder.
# - Run 'docker-compose pull'.
# - Run 'docker-compose run --rm webserver createsuperuser' to create a user.
# - Run 'docker-compose up -d'.
#
# For more extensive installation and update instructions, refer to the
# documentation.
services:
redis:
image: redis
container_name: Paperless-NGX-REDIS
restart: always
networks:
default:
ipv4_address: 192.168.1.102
volumes:
- /volume1/docker/paperless-ngx/redis:/usr/local/etc/redis
- /volume1/docker/paperless-ngx/data:/data
db:
image: postgres
container_name: Paperless-NGX-DB
restart: always
volumes:
- /volume1/docker/paperless-ngx/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: dbname
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: dbpass
networks:
default:
ipv4_address: 192.168.1.103
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx
container_name: Paperless-NGX
restart: always
depends_on:
- db
- redis
- gotenberg
- tika
ports:
- 8000:8000
volumes:
- /volume1/docker/paperless-ngx/data:/usr/src/paperless/data
- /volume1/docker/paperless-ngx/media:/usr/src/paperless/media
- /volume1/docker/paperless-ngx/export:/usr/src/paperless/export
- /volume1/scan:/usr/src/paperless/consume
environment:
PAPERLESS_REDIS: redis://192.168.1.102:6379
PAPERLESS_DBHOST: db
PUID: 1026
PGID: 100
USERMAP_UID: 1026
USERMAP_GID: 100
PAPERLESS_TIME_ZONE: Europe/Berlin
PAPERLESS_ADMIN_USER: admin
PAPERLESS_ADMIN_PASSWORD: test1234
PAPERLESS_OCR_LANGUAGE: deu
PAPERLESS_OCR_MODE: skip
PAPERLESS_CONSUMER_ENABLE_BARCODES: true
PAPERLESS_CONSUMER_DELETE_DUPLICATES: true
PAPERLESS_CONSUMER_RECURSIVE: true
PAPERLESS_FILENAME_FORMAT: '{correspondent}/{created_year}-{created_month}-{created_day} {document_type} {correspondent} {title} - {tag_list}'
PAPERLESS_TIKA_ENABLED: 1
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://192.168.1.100:3000
PAPERLESS_TIKA_ENDPOINT: http://192.168.1.101:9998
networks:
default:
ipv4_address: 192.168.1.99
gotenberg:
image: gotenberg/gotenberg
restart: unless-stopped
container_name: gotenberg
ports:
- 3044:3000
networks:
default:
ipv4_address: 192.168.1.100
command:
- "gotenberg"
- "--chromium-disable-routes=true"
tika:
image: ghcr.io/paperless-ngx/tika
container_name: tika
ports:
- 9998:9998
networks:
default:
ipv4_address: 192.168.1.101
restart: unless-stopped
networks:
default:
name: mvl
external: true
# volumes:
# data:
# media:
# redisdata: