Container to watch a folder and import it in Papermerge .
This is a docker-compose sample you can use:
---
version: "3.8"
services:
papermerge:
image: ghcr.io/linuxserver/papermerge
container_name: papermerge
# Complete this container info
networks:
- papermerge-net
papermerge-importer-user1:
image: ghcr.io/ryther/papermerge-importer
container_name: papermerge-importer-user1
secrets:
- papermergeimporter_auth_token1
env_file:
- ./user1.env
volumes:
- ${HOME}/documents/import/user1:/data/papermerge/import
restart: unless-stopped
networks:
- papermerge-net
papermerge-importer-user2:
image: ghcr.io/ryther/papermerge-importer
container_name: papermerge-importer-user2
secrets:
- papermergeimporter_auth_token2
env_file:
- ./user2.env
volumes:
- ${HOME}/documents/import/user2:/data/papermerge/import
restart: unless-stopped
networks:
- papermerge-net
networks:
papermerge-net:
name: papermerge-net
secrets:
papermergeimporter_auth_token_user1:
file: ./auth_token1.secret
papermergeimporter_auth_token_user2:
file: ./auth_token2.secret
...
In addition to the compose file, you need 2 more files for each user, these files can be named as desired but needs to be reflected in the compose:
user1.env
FILE__AUTH_TOKEN=/run/secrets/papermergeimporter_auth_token_user1
PAPERMERGE_HOST=papermerge:8000
auth_token1.secret
user_1_token_here