1.3 KiB
1.3 KiB
Service Setup Guide: Paperless-ngx
1. Pre-Setup (Manual)
Create Service User
- Manual: Create a user named
svc-paperlessin Synology Control Panel. - Manual: Give this user read/write access to the
dockerandmediashared folders.
Get User IDs
- Manual: SSH into NAS and run
sudo synouser --get svc-paperless. - Expected Output: Look for
User IDandGroup ID. - Action: Note these IDs for the
stack.envfile.
2. Infrastructure Setup
Run Setup Script
- Action: Run the setup script from this directory:
sudo bash create_paperless_folders.sh - What it does:
- Creates
/volume1/docker/paperless/{data,media,consume,export}. - Creates
/volume1/docker/paperless/redisdata. - Sets ownership to
svc-paperless.
- Creates
3. Portainer Deployment
Environment Variables
- Action: Create or update
stack.envin Portainer with:PUID=1036(Replace with your actual ID)PGID=65538(Replace with your actual ID)PAPERLESS_SECRET_KEY(Generate a long random string)
Deploy
- Action: Create a new stack named
paperlessin Portainer. - Action: Paste
docker-compose.portainer.ymland deploy. - Verification: Access Paperless at
http://[NAS_IP]:8010.