---
default_config: &defaults
  disk_quota: 512M
  timeout: 180
  services:
    - dashboard-db       # cf create-service aws-rds shared-mysql dashboard-db
    - dashboard-s3       # cf create-service s3 basic dashboard-s3
    - dashboard-secrets  # cf create-user-provided-service dashboard-secrets -p '{
               # "ENCRYPTION_KEY": "long-random-string"
               # }'

applications:
- name: dashboard
  <<: *defaults
  memory: 64M
  instances: 1
  random-route: true
  env:
    APP_DIR: /home/vcap/app
  processes:
  - type: web
    command: $HOME/.bp/bin/start
    disk_quota: 512M
    timeout: 10
