Skip to content

Instantly share code, notes, and snippets.

@thanhtantran
Created January 16, 2025 10:44
Show Gist options
  • Select an option

  • Save thanhtantran/0bd7fcaf6be3b01586aefdcf9bb597bc to your computer and use it in GitHub Desktop.

Select an option

Save thanhtantran/0bd7fcaf6be3b01586aefdcf9bb597bc to your computer and use it in GitHub Desktop.
paperless-ngx Orange PI 5
# Author : Tran Thanh Tan
# 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:
broker:
container_name: paperless-redis
image: docker.io/library/redis:7
restart: unless-stopped
volumes:
- redisdata:/data
db:
container_name: paperless-db
image: docker.io/library/postgres:17.2
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: paperless
POSTGRES_USER: paperless
POSTGRES_PASSWORD: paperless
webserver:
container_name: paperless-app
image: ghcr.io/paperless-ngx/paperless-ngx:latest
restart: unless-stopped
depends_on:
- db
- broker
- gotenberg
- tika
ports:
- "8000:8000"
volumes:
- data:/usr/src/paperless/data
- media:/usr/src/paperless/media
- ./export:/usr/src/paperless/export
- ./consume:/usr/src/paperless/consume
env_file: docker-compose.env
environment:
PAPERLESS_REDIS: redis://broker:6379
PAPERLESS_DBHOST: db
PAPERLESS_TIKA_ENABLED: 1
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
PAPERLESS_TIME_ZONE: Asia/Ho_Chi_Minh
PAPERLESS_OCR_LANGUAGE: vie
gotenberg:
container_name: paperless-gotenberg
image: docker.io/gotenberg/gotenberg:8.7
restart: unless-stopped
# The gotenberg chromium route is used to convert .eml files. We do not
# want to allow external content like tracking pixels or even javascript.
command:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
tika:
container_name: paperless-tika
image: docker.io/apache/tika:latest
restart: unless-stopped
volumes:
data:
media:
pgdata:
redisdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment