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.

36 lines
1.1 KiB

  1. summary: "MongoDB server"
  2. maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
  3. image: docker.0k.io/mongo:4.0.24-myc
  4. data-resources:
  5. - /var/lib/mongodb
  6. config-resources:
  7. - /etc/mongod.conf
  8. provides:
  9. mongo-database:
  10. uses:
  11. schedule-command:
  12. constraint: optional
  13. auto: pair
  14. solves:
  15. backup: "Automatic regular backups"
  16. default-options:
  17. schedule: "47 * * * *" ## schedule backup every hour
  18. ## This one is useful only if previous relation is used
  19. backup:
  20. constraint: recommended
  21. auto: pair
  22. solves:
  23. backup: "Automatic regular backups of dumps"
  24. default-options:
  25. ## First pattern matching wins, no pattern matching includes.
  26. ## include-patterns are checked first, then exclude-patterns
  27. ## Patterns rules:
  28. ## - ending / for directory
  29. ## - '*' authorized
  30. ## - must start with a '/', will start from $SERVICE_DATASTORE
  31. # include-patterns:
  32. # - /var/backups/mongo/
  33. exclude-patterns:
  34. - "/var/lib/" ## mongo working data files
  35. - "/var/backups/mongo/*.inprogress/" ## database dump in progress