If you need to run multiple instances of paperless on the same machine, the following changes need to be made. This guide assumes paperless is installed via docker containers.
- Create different paths in your user account for the instances, e.g.
/home/user/paperless-1and /home/user/paperless-2. Copy the docker-compose.yml, the docker-compose.env and the .env files into these places. Also create the export and consume folders below these paths, corresponding to the way set in the docker-compose.yml file.
- In the
.env file, in line COMPOSE_PROJECT_NAME=paperless, assign different names for each instance.
- In file
docker-comose.yml, in section
ports:
- "8000:8000"
give each instance an individual port number (the number in front of the colon).
The rest of the setup should be as described in https://docs.paperless-ngx.com/setup/. docker compose pull only needs to be run once. Each instance needs to be started with docker compose up -d individually.