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.

47 lines
1.5 KiB

  1. description: Gogocarto server
  2. subordinate: true
  3. requires:
  4. web-publishing-directory:
  5. interface: publish-dir
  6. scope: container
  7. provides:
  8. map-server:
  9. uses:
  10. publish-dir:
  11. #constraint: required | recommended | optional
  12. #auto: pair | summon | none ## default: pair
  13. scope: container
  14. constraint: required
  15. auto: summon
  16. solves:
  17. container: "main running server"
  18. default-options:
  19. location: !var-expand "$CONFIGSTORE/$BASE_SERVICE_NAME/opt/apps/gogocarto/web"
  20. data-dirs: ## write permission for web-app
  21. - uploads
  22. mongo-database:
  23. #constraint: required | recommended | optional
  24. #auto: pair | summon | none ## default: pair
  25. constraint: required
  26. auto: summon
  27. solves:
  28. database: "main storage"
  29. schedule-command:
  30. constraint: recommended
  31. auto: pair
  32. solves:
  33. maintenance: "Production scheduled tasks"
  34. default-options: !bash-stdout |
  35. bin_console="dc exec -T -u www-data $MASTER_BASE_SERVICE_NAME \"/opt/apps/$BASE_SERVICE_NAME/bin/console\""
  36. scheds=(
  37. checkvote @daily "$bin_console app:elements:checkvote"
  38. checkExternalSourceToUpdate @daily "$bin_console app:elements:checkExternalSourceToUpdate"
  39. notify-moderation @daily "$bin_console app:notify-moderation"
  40. sendNewsletter @hourly "$bin_console app:users:sendNewsletter"
  41. webhooks-post "*/5 * * * *" "$bin_console --env=prod app:webhooks:post"
  42. )
  43. printf "%s: (%s) {-D -p 10} %s\n" "${scheds[@]}"