Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| services:paperless-ngx [2026/04/06 16:20] – created willy | services:paperless-ngx [2026/04/07 07:39] (current) – [Paperless NGX] willy | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Paperless NGX ====== | ====== Paperless NGX ====== | ||
| - | **NOTE:** this is only a STUB to be completed in the future. | + | [[https:// |
| - | + | ||
| - | + | ||
| - | [[https:// | + | |
| ===== Installation ===== | ===== Installation ===== | ||
| Line 13: | Line 10: | ||
| <code bash> | <code bash> | ||
| useradd -d / | useradd -d / | ||
| + | mkdir / | ||
| + | chown paperless: | ||
| </ | </ | ||
| and, as user **paperless**, | and, as user **paperless**, | ||
| <file - docker-compose.yml> | <file - docker-compose.yml> | ||
| + | services: | ||
| + | broker: | ||
| + | image: docker.io/ | ||
| + | restart: unless-stopped | ||
| + | volumes: | ||
| + | - / | ||
| + | network: | ||
| + | - paperless-net | ||
| + | db: | ||
| + | image: docker.io/ | ||
| + | restart: unless-stopped | ||
| + | volumes: | ||
| + | - / | ||
| + | environment: | ||
| + | POSTGRES_DB: | ||
| + | POSTGRES_USER: | ||
| + | POSTGRES_PASSWORD: | ||
| + | network: | ||
| + | - paperless-net | ||
| + | webserver: | ||
| + | image: ghcr.io/ | ||
| + | restart: unless-stopped | ||
| + | depends_on: | ||
| + | - db | ||
| + | - broker | ||
| + | ports: | ||
| + | - " | ||
| + | volumes: | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | - / | ||
| + | environment: | ||
| + | PAPERLESS_URL: | ||
| + | PAPERLESS_SECRET_KEY: | ||
| + | PAPERLESS_TIME_ZONE: | ||
| + | PAPERLESS_OCR_LANGUAGE: | ||
| + | environment: | ||
| + | PAPERLESS_REDIS: | ||
| + | PAPERLESS_DBHOST: | ||
| network: | network: | ||
| - paperless-net | - paperless-net | ||
| Line 25: | Line 63: | ||
| </ | </ | ||
| - | Adapt the paths and the port to your needs (8089). | + | Adapt the paths and the port to your needs (2276). |
| Now pull it: | Now pull it: | ||
| Line 35: | Line 73: | ||
| ===== Reverse Proxy ===== | ===== Reverse Proxy ===== | ||
| - | The following NGINX configuration file is the base for Stirling-PDF: | + | The following NGINX configuration file is the base paperless-ngx. Consider that it must be hosted on a subdomain. |
| <file - paperless.conf> | <file - paperless.conf> | ||
| - | location / | + | map $http_upgrade $connection_upgrade |
| - | | + | |
| - | | + | '' |
| - | client_max_body_size 200M; | + | |
| - | proxy_read_timeout 3600; | + | |
| } | } | ||
| - | </ | ||
| - | Adapt the port to match the one in the docker compose. I also suggest to set a proper | + | server { |
| + | server_name docs.mydomain.com; | ||
| + | listen 443 ssl; | ||
| + | listen 8443 ssl; | ||
| + | http2 on; | ||
| + | |||
| + | access_log | ||
| + | error_log | ||
| + | |||
| + | proxy_buffering off; | ||
| + | |||
| + | location | ||
| + | proxy_pass http://127.0.0.1: | ||
| + | proxy_http_version 1.1; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection " | ||
| + | |||
| + | proxy_redirect off; | ||
| + | proxy_set_header Host $host: | ||
| + | proxy_set_header X-Real-IP $remote_addr; | ||
| + | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| + | proxy_set_header X-Forwarded-Host $server_name; | ||
| + | proxy_set_header X-Forwarded-Proto $scheme; | ||
| + | add_header Referrer-Policy " | ||
| + | } | ||
| + | |||
| + | include com.mydomain/ | ||
| + | } | ||
| + | </ | ||
| See [[selfhost: | See [[selfhost: | ||