Accessing outside data

To use Mayan EDMS’s staging folders or watch folders from Docker, the data for these source must be made accessible to the container. This is done by mounting the folders in the host computer to folders inside the container by via Docker volumes (

This is necessary because Docker containers do not have access to host data on purpose.

The format for the volume option is:

-v <Host folder>:<Container folder>

For example, to make a host folder named /opt/scanned_files accessible to the container as /scanned_files, use:

-v /opt/scanned_files:/scanned_files

Now create a watch folder source in Mayan EDMS and use the container path /scanned_files. The documents from the host folder /opt/scanned_files will be automatically available.

Use the same procedure to mount host folders to be used as staging folders. In this example /scanned_files was used as the container directory, but any path can be used as long as:

  • the path is not an already existing path

  • the path is not used by any other program

  • the path is a single level path


For the changes in the volume configuration to become active, it is necessary to restart the container.