Last active
May 7, 2022 02:06
-
-
Save petersem/df0db6f144a341772028457068bffa68 to your computer and use it in GitHub Desktop.
PaperlessNGX Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# .env | |
# | |
PUID=1026 | |
PGID=101 | |
PERSIST=/volume1/docker | |
TIME_ZONE=Australia/Brisbane | |
PNGX_DB_PORT=5432 | |
PNGX_DB_NAME=paperless | |
PNGX_DB_USER=puser | |
PNGX_DB_PSW=secretpsw | |
PNGX_ADMIN_USER=admin | |
PNGX_ADMIN_PSW=admin123 | |
PNGX_SECRET=thisisatestofaverysecretkey1234321!!@ | |
# | |
# compose.yaml | |
# | |
services: | |
paperlessngx: | |
image: ghcr.io/paperless-ngx/paperless-ngx | |
container_name: paperlessngx | |
restart: unless-stopped | |
depends_on: | |
- paperlessngxredis | |
- paperlessngxdb | |
ports: | |
- 2111:8000 | |
volumes: | |
- $PERSIST/paperlessngx/data:/usr/usr/paperless/data | |
- $PERSIST/paperlessngx/config:/usr/usr/paperless/media | |
- $PERSIST/paperlessngx/export:/usr/usr/paperless/export | |
- $PERSIST/paperlessngx/consume:/usr/usr/paperless/consume | |
environment: | |
PAPERLESS_REDIS: redis://paperlessngxredis:6379 | |
PAPERLESS_DBHOST: paperlessngxdb | |
PAPERLESS_DBPORT: $PNGX_DB_PORT | |
PAPERLESS_DBNAME: $PNGX_DB_NAME | |
PAPERLESS_DBUSER: $PNGX_DB_USER | |
PAPERLESS_DBPASS: $PNGX_DB_PSW | |
PAPERLESS_TIME_ZONE: $TIME_ZONE | |
PAPERLESS_ADMIN_USER: $PNGX_ADMIN_USER | |
PAPERLESS_ADMIN_PASSWORD: $PNGX_ADMIN_PSW | |
PAPERLESS_OCR_LANGUAGE: eng | |
USERMAP_UID: $PUID | |
USERMAP_GID: $PGID | |
PAPERLESS_SECRET_KEY: $PNGX_SECRET | |
healthcheck: | |
test: ["CMD", "curl", "-f", "http://localhost:8000"] | |
start_period: 60s | |
interval: 30s | |
timeout: 10s | |
retries: 5 | |
paperlessngxredis: | |
image: redis:6.0 | |
container_name: paperlessngxredis | |
restart: unless-stopped | |
volumes: | |
- $PERSIST/paperlessngxredis:/data | |
labels: | |
autoheal: true | |
healthcheck: | |
test: ["CMD-SHELL", "redis-cli ping | grep PONG"] | |
start_period: 10s | |
interval: 1s | |
timeout: 3s | |
retries: 5 | |
paperlessngxdb: | |
image: postgres:13 | |
container_name: paperlessngxdb | |
restart: unless-stopped | |
volumes: | |
- $PERSIST/paperlessngxdb:/var/lib/postgresql/data | |
environment: | |
POSTGRES_DB: $PNGX_DB_NAME | |
POSTGRES_USER: $PNGX_DB_USER | |
POSTGRES_PASSWORD: $PNGX_DB_PSW | |
healthcheck: | |
test: pg_isready -U $PNGX_DB_USER -d $PNGX_DB_NAME | |
start_period: 10s | |
interval: 10s | |
timeout: 3s | |
retries: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment