2017-08-24 17:08:39 +01:00
|
|
|
---
|
2017-02-13 18:04:08 +00:00
|
|
|
|
|
|
|
|
buildpack: python_buildpack
|
2018-02-06 11:50:40 +00:00
|
|
|
command: scripts/run_app_paas.sh gunicorn -c /home/vcap/app/gunicorn_config.py -k eventlet --worker-connections 256 --error-logfile /home/vcap/logs/gunicorn_error.log -w 5 -b 0.0.0.0:$PORT application
|
2017-02-13 18:04:08 +00:00
|
|
|
services:
|
|
|
|
|
- notify-db
|
|
|
|
|
env:
|
|
|
|
|
NOTIFY_APP_NAME: public-api
|
|
|
|
|
CW_APP_NAME: api
|
2017-11-22 16:31:04 +00:00
|
|
|
# required by cf run-task
|
|
|
|
|
FLASK_APP: application.py
|
2018-01-05 14:27:17 +00:00
|
|
|
|
|
|
|
|
# Credentials variables
|
|
|
|
|
ADMIN_BASE_URL: null
|
|
|
|
|
ADMIN_CLIENT_SECRET: null
|
|
|
|
|
API_HOST_NAME: null
|
|
|
|
|
DANGEROUS_SALT: null
|
|
|
|
|
SECRET_KEY: null
|
|
|
|
|
ROUTE_SECRET_KEY_1: null
|
|
|
|
|
ROUTE_SECRET_KEY_2: null
|
|
|
|
|
|
|
|
|
|
PERFORMANCE_PLATFORM_ENDPOINTS: null
|
|
|
|
|
|
|
|
|
|
NOTIFICATION_QUEUE_PREFIX: null
|
|
|
|
|
AWS_ACCESS_KEY_ID: null
|
|
|
|
|
AWS_SECRET_ACCESS_KEY: null
|
|
|
|
|
|
|
|
|
|
STATSD_PREFIX: null
|
|
|
|
|
|
2018-01-17 14:36:02 +00:00
|
|
|
DESKPRO_API_KEY: null
|
|
|
|
|
DESKPRO_API_HOST: null
|
|
|
|
|
|
2018-01-05 14:27:17 +00:00
|
|
|
MMG_URL: null
|
|
|
|
|
MMG_API_KEY: null
|
|
|
|
|
MMG_INBOUND_SMS_AUTH: null
|
|
|
|
|
MMG_INBOUND_SMS_USERNAME: null
|
|
|
|
|
|
|
|
|
|
FIRETEXT_API_KEY: null
|
|
|
|
|
LOADTESTING_API_KEY: null
|
|
|
|
|
FIRETEXT_INBOUND_SMS_AUTH: null
|
|
|
|
|
|
|
|
|
|
REDIS_ENABLED: null
|
|
|
|
|
REDIS_URL: null
|
|
|
|
|
|
|
|
|
|
TEMPLATE_PREVIEW_API_HOST: null
|
|
|
|
|
TEMPLATE_PREVIEW_API_KEY: null
|
|
|
|
|
|
2017-02-13 18:04:08 +00:00
|
|
|
instances: 1
|
2017-03-06 14:48:27 +00:00
|
|
|
memory: 1G
|
2017-02-13 18:04:08 +00:00
|
|
|
|
|
|
|
|
applications:
|
|
|
|
|
- name: notify-api
|
|
|
|
|
|
|
|
|
|
- name: notify-api-db-migration
|
|
|
|
|
command: sleep infinity
|
|
|
|
|
no-route: true
|
|
|
|
|
health-check-type: none
|
|
|
|
|
instances: 1
|
|
|
|
|
memory: 128M
|