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.

63 lines
1.8 KiB

  1. description: "Drone Server"
  2. maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
  3. ## XXXvlab: docker uses the 'build' directory or the 'image:' option here.
  4. docker-image: docker.0k.io/drone:1.1
  5. docker-compose:
  6. environment:
  7. DRONE_OPEN: "true" ## users are authenticated through the vcs-manager anyway
  8. DRONE_GIT_ALWAYS_AUTH: "false"
  9. DRONE_TLS_AUTOCERT: "false"
  10. ## default database
  11. DATABASE_DRIVER: sqlite3
  12. DATABASE_CONFIG: /data/drone.sqlite
  13. # GIN_MODE: release
  14. ## Should probably offer an option in charm, with 'log.{}'
  15. # DRONE_LOGS_DEBUG: "true"
  16. # DRONE_LOGS_TEXT=true
  17. # DRONE_LOGS_PRETTY=true
  18. # DRONE_LOGS_COLOR=true
  19. data-resources:
  20. - /data
  21. default-options:
  22. mode: single ## mode is 'single' or 'multi'
  23. capacity: 2 ## only if mode is 'single'
  24. #secret: ## only if mode is 'multi'
  25. uses:
  26. vcs-manager:
  27. #constraint: required | recommended | optional
  28. #auto: pair | summon | none ## default: pair
  29. constraint: required
  30. auto: pair
  31. solves:
  32. feature: "Version control system manager"
  33. web-proxy:
  34. #constraint: required | recommended | optional
  35. #auto: pair | summon | none ## default: pair
  36. constraint: recommended
  37. auto: pair
  38. solves:
  39. proxy: "Public access"
  40. default-options:
  41. target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80
  42. backup:
  43. constraint: recommended
  44. auto: pair
  45. solves:
  46. backup: "Automatic regular backups of sql database"
  47. default-options:
  48. ## First pattern matching wins, no pattern matching includes.
  49. ## include-patterns are checked first, then exclude-patterns
  50. ## Patterns rules:
  51. ## - ending / for directory
  52. ## - '*' authorized
  53. ## - must start with a '/', will start from $SERVICE_DATASTORE
  54. # include-patterns:
  55. # - /var/backups/pg/