LodestoneHQ / lodestone

Personal Document Archiving (DMS, EDMS for Personal/Home Office use)
https://forms.gle/u1RXnbocbFWqfxGb9
GNU General Public License v3.0
521 stars 28 forks source link

Update docker-compose files #113

Closed dskaggs closed 3 years ago

dskaggs commented 3 years ago
adam-stanek commented 3 years ago

I noticed one more thing while testing it out. Since the new document image is based on scratch, there is no /tmp directory.

We might want to add:

RUN mkdir /tmp

to the Dockerfile.document

or mount it here as volume with something like:

volumes:
- ./data/document-tmp:/tmp

for the document_processor

dskaggs commented 3 years ago

RUN mkdir /tmp

Confirmed that the document processor errors out without the /tmp directory being present. I've added that command to the Dockerfile.document

Edit: Found out that doesn't work on the scratch image b/c there's no shell. Reverted that change and am adding the following volume mapping to the processor config. Found that to work locally.

volumes:
  - ./data/storage/tmp:/tmp