mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 03:55:58 +03:00
[GH-ISSUE #307] Need help: How to change the Data Folder using Docker compose? #243
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Muchacho89 on GitHub (Feb 15, 2021).
Original GitHub issue: https://github.com/ciur/papermerge/issues/307
Hi guys,
I installed Papermerge succcessfully via docker-compose. I can use it via Webservice, and OCR works fine.
But I have no clue, how can I change the Data Folder of the Papermerge App?
I followed the Docker HowTo but the Media_dir is still: MEDIA_DIR = "/opt/media"
I would like to change the path. e.g. to /Home
Is it possible and where I have to make the changes?
Thank you very much!
@napcae commented on GitHub (Feb 16, 2021):
What are you trying to achieve? Want to change the mount point on your local host? By default papermerge uses named volumes
github.com/ciur/papermerge@b0ce649901/docker/1.4/docker-compose.yml (L13-L15)If you want to use a local directory you can specify it with an absolute path:
Changing the right part of the path, i.e. "/opt/media" would change it in the container. You would need to change the papermerge configuration to reflect this as well.
@Muchacho89 commented on GitHub (Feb 16, 2021):
Hi, thanks for your reply!
My goal is to safe the uploaded documents on another drive.
Docker is installed on the system drive and Papermerge as well.
But the Documents should be safed on my Data Drive.
System Drive: Docker + Papermerge --> Upload a Document --> Safe Document on the Data Drive
If I understand you corretly, I only have to change the Volume Path in the yml document?
For example:
version: '3.7' services: app: image: eugenci/papermerge:1.5.5 build: context: . dockerfile: app.dockerfile container_name: papermerge_app ports: - "8000:8000" depends_on: - db - redis volumes: - **/media:**/opt/mediaIs it correct?
@napcae commented on GitHub (Feb 17, 2021):
That would be correct, although I don't understand why you want to change the path inside the container, i.e. "**/opt/media".