Skip to content

Ryther/docker-papermerge-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-papermerge-importer

Container to watch a folder and import it in Papermerge .

Configuration

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages