Skip to content

Instantly share code, notes, and snippets.

@dominicpratt
Created August 18, 2024 12:45
Show Gist options
  • Save dominicpratt/db8f3ac095c5ac21497fe46fe8bb5804 to your computer and use it in GitHub Desktop.
Save dominicpratt/db8f3ac095c5ac21497fe46fe8bb5804 to your computer and use it in GitHub Desktop.
docker-compose-file for Paperless-NGX on a QNAP NAS
version: '3.6'
networks:
paperless-net:
external: false
services:
broker:
container_name: paperless-redis
image: docker.io/library/redis:7
networks:
- paperless-net
volumes:
- /share/CACHEDEV1_DATA/Container/paperless-ngx/redis:/redis
restart: unless-stopped
db:
container_name: paperless-db
image: docker.io/library/postgres:15
networks:
- paperless-net
restart: unless-stopped
volumes:
- /share/CACHEDEV1_DATA/Container/paperless-ngx/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: paperless
POSTGRES_USER: paperless
POSTGRES_PASSWORD: $RANDOMPASSWORD$
webserver:
container_name: paperless
image: ghcr.io/paperless-ngx/paperless-ngx:latest
networks:
- paperless-net
restart: unless-stopped
depends_on:
- db
- broker
ports:
- 8000:8000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- /share/CACHEDEV1_DATA/Container/paperless-ngx/data:/usr/src/paperless/data
- /share/CACHEDEV1_DATA/Container/paperless-ngx/media:/usr/src/paperless/media
- /share/CACHEDEV2_DATA/Daten/Paperless-NGX/Export:/usr/src/paperless/export
- /share/CACHEDEV2_DATA/Daten/Paperless-NGX/Import:/usr/src/paperless/consume
environment:
PAPERLESS_REDIS: redis://broker:6379
PAPERLESS_DBHOST: db
PAPERLESS_DBPASS: $RANDOMPASSWORD$
USERMAP_UID: 1000
USERMAP_GID: 100
PAPERLESS_OCR_LANGUAGES: deu eng
PAPERLESS_TIME_ZONE: Europe/Berlin
PAPERLESS_OCR_LANGUAGE: deu
PAPERLESS_TIKA_ENABLED: 1
PAPERLESS_ENABLE_UPDATE_CHECK: true
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
gotenberg:
container_name: paperless-gotenberg
image: docker.io/gotenberg/gotenberg:8.7
restart: unless-stopped
environment:
CHROMIUM_DISABLE_ROUTES: 1
networks:
- paperless-net
tika:
container_name: paperless-tika
image: ghcr.io/paperless-ngx/tika:latest
restart: unless-stopped
networks:
- paperless-net
scheduler:
container_name: paperless-backup
image: mcuadros/ofelia:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /share/CACHEDEV1_DATA/Container/ofelia/ofelia.ini:/etc/ofelia/config.ini
depends_on:
- webserver
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment