Some test text!

menu
Mounting a Docker Data Volumekeyboard_arrow_down

Mounting a docker data volume

Warning
Please be aware that the performance of this volume is critical to the performance of the server in general, and that the server operates under the assumption that the files will not be modified or locked by another process. A latency gain will be incurred if using a shared volume for storing cached data.

As of version WebViewer Server 1.5.0 mounting of the cache directory /usr/local/apache-tomcat/static_data with Docker to a local directory or another volume on your system is supported.

  1. Mount your volume to /usr/local/apache-tomcat/static_data

This can be done in docker-compose through the volumes specifier in docker-compose.yml:

volume:
  /usr/local/apache-tomcat/static_data:/my_static_data_folder

or through docker run

docker run -v /usr/local/apache-tomcat/apache-tomcat:/my_static_data_folder

At this point all data created by the container will be copied to the mounted volume. WebViewer Server will continue to manage the cache within this volume.

It is possible to share a mounted volume with multiple WebViewer Servers, this will cause them to have a shared cache. This can be done by simply mounting the volume on both containers.

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our live demo to learn about use cases & capabilities for WebViewer

Learn more
close