/
deployment.json
44 lines (44 loc) · 1005 Bytes
/
deployment.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"name": "$INSTANCE",
"base_path": "$BASE_PATH",
"environment": "$ENVIRONMENT",
"routes": [
{
"path": "/hello/user",
"access_requirements": {"nhs_login": "P5", "nhs_cis2": "aal3"},
"verbs": ["GET"]
},
{
"path": "/hello/application",
"access_requirements": {"app": "level0"},
"verbs": ["GET"]
},
{
"path": "/hello/world",
"access_requirements": {},
"verbs": ["GET"]
}
],
"access_modes": [
{
"title": "Hello World",
"grants_access": {"nhs_login": "P5", "nhs_cis2": "aal3", "app": "level0"}
}
],
"targets": [
{
"type": "hosted",
"containers": [
{
"name": "hello-world",
"image": "$DOCKER_REGISTRY/hello-world_hello-world:$DOCKER_TAG",
"environment": {
"LOG_LEVEL": "info",
"UPSTREAM": "https://$ENVIRONMENT.api.service.nhs.uk",
"NODE_ENV": "production"
}
}
]
}
]
}