Run Papermerge in a Container on Synology DSM
Version Papermerge: 3.0.3
Prerequisites
- Make sure Container Manager is installed and configured, for instruction see here.
- Create a folder structure, see instructions
Docker Compose Papermerge:
- Go to the correct version, Docker Compose and copy text from PostgreSQL: see link
- Container Manager, Project, Create
Project name: papermerge
Path: /volume1/docker/projects/papermerge
Source: Create docker-compose.yml
- Paste text
- adjust text x-backend:
volumes:x-backend:
– /volume1/docker/papermerge/index_db:/core_app/index_db
– /volume1/docker/papermerge/media:/core_app/media
- adjust text db:
volumes:
– /volume1/papermerge/postgres_data:/var/lib/postgresql/data/
- adjust with own key: PAPERMERGE__SECURITY__SECRET_KEY:
- adjust with you own Username: PAPERMERGE__AUTH__USERNAME:
- adjust with your own Password:PAPERMERGE__AUTH__PASSWORD:
- adjust with your own POSTGRES Password: POSTGRES_PASSWORD:
- adjust with your own POSTGRES DB: POSTGRES_DB
- adjust with your own POSTGRES USER: POSTGRES_USER
- adjust accordingly: PAPERMERGE__DATABASE__URL:
- Next
- Web Portal Settings, Next
- Summary, Done
Example YAML configuration:
version: “3.9”
x-backend: &common
image: papermerge/papermerge:3.0.3
environment:
PAPERMERGE__SECURITY__SECRET_KEY: 12345
PAPERMERGE__AUTH__USERNAME: admin
PAPERMERGE__AUTH__PASSWORD: admin
PAPERMERGE__DATABASE__URL: postgresql://coco:kesha@db:5432/cocodb
PAPERMERGE__REDIS__URL: redis://redis:6379/0
volumes:
– /volume1/docker/papermerge/index_db:/core_app/index_db
– /volume1/docker/papermerge/media:/core_app/media
services:
web:
<<: *common
ports:
– “12000:80”
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
worker:
<<: *common
command: worker
redis:
image: redis:6
healthcheck:
test: redis-cli –raw incr ping
interval: 5s
timeout: 10s
retries: 5
start_period: 10s
db:
image: postgres:16.1
volumes:
– /volume1/papermerge/postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_PASSWORD: kesha
POSTGRES_DB: cocodb
POSTGRES_USER: coco
healthcheck:
test: pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB
interval: 5s
timeout: 10s
retries: 5
start_period: 10s
volumes:
postgres_data:
index_db:
media:
Login Papermerge
- <IP address>:12000 or DNS Name: 12000
For example:
mynas.example.com:12000