Advertisement
Guest User

Untitled

a guest
Nov 26th, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.49 KB | None | 0 0
  1. # This compose file provides an example of attaching multiple webviewer-server instances to a single load balancer. Please refer to docker-compose.yml for regular usage.
  2. version: "3.0"
  3. services:
  4. loadbalancer:
  5. image: "pdftron/wv-loadbalancer:latest"
  6. restart: always
  7. #deploy:
  8. # restart_policy:
  9. # condition: always
  10. # For providing a SSL key. Mounts the directory named SSL and expects a combined_key.pem to be present.
  11. volumes:
  12. - c:\ssl:/etc/ssl/default/
  13. environment:
  14. # used if you wish to replace the SSL port with another HTTP port
  15. # bind '8051' in your ports to use this port
  16. # effective for a situation where HTTPs is handled by another entrypoint
  17. DISABLE_SSL: 'false'
  18. # used if the anonymous annotations feature is being hosted on a server other than
  19. # the one which processes PDFs
  20. REROUTE_ANNOT_REQUESTS: 'false'
  21. INITIAL_NODE_A: pdfd-tomcat1
  22. INITIAL_NODE_B: pdfd-tomcat2
  23. # Sets a URL prefix for the server
  24. URL_PREFIX:
  25. # Enables management from tcp socket 4893
  26. # Do not enable unless your server is secure from external access
  27. # Add 4893:4893 to the ports section if using this
  28. ENABLE_TCP_MANAGEMENT: 'false'
  29. ports:
  30. # ssl access
  31. - 8443:4430
  32. # non-ssl access
  33. #- "8090:8050"
  34. # ssh administration access
  35. #- "2223:22"
  36. # stats page
  37. #- "8999:9001"
  38. # health check -> localhost:60001/http_health_check
  39. - 60001:60001
  40. pdfd-tomcat1:
  41. image: "pdftron/webviewer-server:latest"
  42. restart: always
  43. #ulimits:
  44. #nofile:
  45. #soft: 64000
  46. #hard: 64000
  47. environment:
  48. # More info about these arguments can be found at:
  49. # https://www.pdftron.com/documentation/web/guides/wv-server-config
  50. # Place your PDFTron key in this argument.
  51. TRN_PDFNET_KEY: ''
  52. # If set to true, tomcat will include the demo app at localhost:port/demo?s
  53. INCLUDE_DEMO: 'false'
  54. # Normally the cache cleanup is triggered once there is less than 1Gb
  55. # of space remaining on the partition, at which point files that have
  56. # not been accessed recently are wiped from the cache.
  57. # The following two settings override this behaviour.
  58. #
  59. # Any file that has not been touched within this number of minutes
  60. # will be wiped from the local disk cache. Cannot be smaller than 10.
  61. # A value of 0 is ignored entirely
  62. TRN_MAX_CACHE_AGE_MINUTES: 0
  63. # Cached content will be cleaned up until the cache occupies less space
  64. # than this limit
  65. # Cannot be smaller than 200, and a value of 0 is ignored.
  66. TRN_MAX_CACHED_MB: 0
  67. # Control the cookie WebViewer Server checks for user stickiness.
  68. TRN_BALANCER_COOKIE_NAME: HAPROXID
  69. TRN_DEBUG_MODE: 'false'
  70. # Force the server to fetch any incoming request at this argument + the incoming link.
  71. # TRN_FETCH_DEFAULT_BASE_ADDR: www.mywebsite.com
  72. # Set required domains for document fetches
  73. # TRN_FETCH_REQUIRED_URL_ROOT: "www.doc.com;www.pdf.com;www.download.com"
  74. # Forward same domain cookies between servers on file fetches.
  75. # TRN_FORWARD_CLIENT_COOKIES: 'false'
  76. # Lock documents to a user session.
  77. # TRN_ENABLE_SESSION_AUTH: 'false'
  78. # Cache documents behind a session id identifier.
  79. # TRN_ENABLE_PER_SESSION_CACHING: 'false'
  80. # Prevent the server from sending the client PDF data directly, using
  81. # derived formats like images or .xod instead
  82. # TRN_DISABLE_CLIENT_PDF_ACCESS: 'true'
  83. # Forces all file fetches to be downgraded to http.
  84. # TRN_FETCH_DOWNGRADE_HTTPS: 'false'
  85. # uncomment to map the static data directory to a drive outside the container
  86. # just replace my_external_static_data with the desired externally mapped folder.
  87. #volumes:
  88. # - ./my_external_static_data:/usr/local/apache-tomcat/static_data
  89. ports:
  90. # Sets the port to bind the internal 8090 port to. Follows the pattern
  91. # external:internal (80:8090). Internal port must either be 8090 or 8443.
  92. - 8060:8443
  93. pdfd-tomcat2:
  94. image: "pdftron/webviewer-server:latest"
  95. restart: always
  96. #ulimits:
  97. #nofile:
  98. #soft: 64000
  99. #hard: 64000
  100. environment:
  101. # More info about these arguments can be found at:
  102. # https://www.pdftron.com/documentation/web/guides/wv-server-config
  103. # Place your PDFTron key in this argument.
  104. TRN_PDFNET_KEY: ''
  105. # If set to true, tomcat will include the demo app at localhost:port/demo?s
  106. INCLUDE_DEMO: 'false'
  107. # Normally the cache cleanup is triggered once there is less than 1Gb
  108. # of space remaining on the partition, at which point files that have
  109. # not been accessed recently are wiped from the cache.
  110. # The following two settings override this behaviour.
  111. #
  112. # Any file that has not been touched within this number of minutes
  113. # will be wiped from the local disk cache. Cannot be smaller than 10.
  114. # A value of 0 is ignored entirely
  115. TRN_MAX_CACHE_AGE_MINUTES: 0
  116. # Cached content will be cleaned up until the cache occupies less space
  117. # than this limit
  118. # Cannot be smaller than 200, and a value of 0 is ignored.
  119. TRN_MAX_CACHED_MB: 0
  120. # Control the cookie WebViewer Server checks for user stickiness.
  121. TRN_BALANCER_COOKIE_NAME: HAPROXID
  122. TRN_DEBUG_MODE: 'false'
  123. # Force the server to fetch any incoming request at this argument + the incoming link.
  124. # TRN_FETCH_DEFAULT_BASE_ADDR: www.mywebsite.com
  125. # Set required domains for document fetches
  126. # TRN_FETCH_REQUIRED_URL_ROOT: "www.doc.com;www.pdf.com;www.download.com"
  127. # Forward same domain cookies between servers on file fetches.
  128. # TRN_FORWARD_CLIENT_COOKIES: 'false'
  129. # Lock documents to a user session.
  130. # TRN_ENABLE_SESSION_AUTH: 'false'
  131. # Cache documents behind a session id identifier.
  132. # TRN_ENABLE_PER_SESSION_CACHING: 'false'
  133. # Prevent the server from sending the client PDF data directly, using
  134. # derived formats like images or .xod instead
  135. # TRN_DISABLE_CLIENT_PDF_ACCESS: 'true'
  136. # Forces all file fetches to be downgraded to http.
  137. # TRN_FETCH_DOWNGRADE_HTTPS: 'false'
  138. # uncomment to map the static data directory to a drive outside the container
  139. # just replace my_external_static_data with the desired externally mapped folder.
  140. #volumes:
  141. # - ./my_external_static_data:/usr/local/apache-tomcat/static_data
  142. ports:
  143. # Sets the port to bind the internal 8090 port to. Follows the pattern
  144. # external:internal (80:8090). Internal port must either be 8090 or 8443.
  145. - 8070:8443
  146.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement