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.6 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. www_data_uid=33
  36. bin_console="dc exec -T -u \"$www_data_uid\" $MASTER_BASE_SERVICE_NAME \"/opt/apps/$BASE_SERVICE_NAME/bin/console\""
  37. scheds=(
  38. checkvote @daily "$bin_console app:elements:checkvote"
  39. checkExternalSourceToUpdate @daily "$bin_console app:elements:checkExternalSourceToUpdate"
  40. notify-moderation @daily "$bin_console app:notify-moderation"
  41. sendNewsletter @hourly "$bin_console app:users:sendNewsletter"
  42. webhooks-post "*/5 * * * *" "$bin_console --env=prod app:webhooks:post"
  43. )
  44. printf "%s: (%s) {-D -p 10} %s\n" "${scheds[@]}"