fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.9 KiB

  1. # from: https://github.com/0k/Docker-DocumentServer (6.1.0)
  2. docker-image: docker.0k.io/oods:2.0.0
  3. data-resources:
  4. - /var/www/onlyoffice/Data
  5. - /var/log/onlyoffice
  6. ## not documented but found in entrypoint and docker inspect
  7. - /var/lib/onlyoffice
  8. - /var/lib/postgres
  9. - /var/lib/rabbitmq
  10. - /var/lib/redis
  11. - /usr/share/fonts/truetype/custom
  12. config-resources:
  13. - /etc/onlyoffice/documentserver
  14. uses:
  15. nextcloud-app:
  16. #constraint: required | recommended | optional
  17. #auto: pair | summon | none ## default: pair
  18. constraint: required
  19. auto: pair
  20. solves:
  21. interface: "UI server"
  22. ## XXXvlab: public access should NOT be necessary, but seem the only way to make
  23. ## it work: https://dev.onlyoffice.org/viewtopic.php?t=19272
  24. web-proxy:
  25. #constraint: required | recommended | optional
  26. #auto: pair | summon | none ## default: pair
  27. constraint: required
  28. auto: summon
  29. solves:
  30. proxy: "Public access"
  31. default-options:
  32. target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80
  33. postgres-database:
  34. constraint: required
  35. auto: summon
  36. solves:
  37. database: "main storage"
  38. ## XXXvlab: this should not be necessary as official documentation
  39. ## seems to explain that all data are either logs or caches. But we
  40. ## had issues with onlyoffice not sending back modifications to the
  41. ## filesystem. With some tweaks, we can sometimes gets the data from
  42. ## application cache. So for now, we must include this data to
  43. ## backup.
  44. backup:
  45. constraint: recommended
  46. auto: pair
  47. solves:
  48. backup: "Automatic regular backups of dumps"
  49. default-options:
  50. ## First pattern matching wins, no pattern matching includes.
  51. ## include-patterns are checked first, then exclude-patterns
  52. ## Patterns rules:
  53. ## - ending / for directory
  54. ## - '*' authorized
  55. ## - must start with a '/', will start from $SERVICE_DATASTORE
  56. include-patterns:
  57. - /var/lib/onlyoffice/