mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 21:48:49 -04:00
Merge pull request #2522 from alphagov/use-port-health-checks-for-api
BAU: Use port health checks for API
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
'staging': ['api.staging-notify.works'],
|
'staging': ['api.staging-notify.works'],
|
||||||
'production': ['api.notifications.service.gov.uk'],
|
'production': ['api.notifications.service.gov.uk'],
|
||||||
},
|
},
|
||||||
'healthcheck-endpoint': '/_status?simple=true',
|
'health-check-type': 'port',
|
||||||
},
|
},
|
||||||
'notify-api-db-migration': {'NOTIFY_APP_NAME': 'api', 'instances': 0},
|
'notify-api-db-migration': {'NOTIFY_APP_NAME': 'api', 'instances': 0},
|
||||||
|
|
||||||
@@ -39,12 +39,7 @@ applications:
|
|||||||
- route: {{ route }}
|
- route: {{ route }}
|
||||||
{%- endfor%}
|
{%- endfor%}
|
||||||
- route: {{ CF_APP }}-{{ environment }}.cloudapps.digital
|
- route: {{ CF_APP }}-{{ environment }}.cloudapps.digital
|
||||||
{% if 'healthcheck-endpoint' in app %}
|
health-check-type: {{ app.get('health-check-type', 'process') }}
|
||||||
health-check-type: http
|
|
||||||
health-check-http-endpoint: {{ app['healthcheck-endpoint'] }}
|
|
||||||
{% else %}
|
|
||||||
health-check-type: process
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- notify-db
|
- notify-db
|
||||||
|
|||||||
Reference in New Issue
Block a user