-
Notifications
You must be signed in to change notification settings - Fork 0
/
northflank.json
97 lines (97 loc) · 2.63 KB
/
northflank.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"name": "Payload Template",
"description": "Payload is a headless CMS and application framework built with TypeScript, Node.js, React and MongoDB.",
"apiVersion": "v1",
"project": {
"spec": {
"name": "Payload Template",
"description": "Payload is a headless CMS and application framework built with TypeScript, Node.js, React and MongoDB.",
"region": "europe-west",
"color": "#57637A"
}
},
"spec": {
"kind": "Workflow",
"spec": {
"type": "sequential",
"steps": [
{
"kind": "Addon",
"spec": {
"name": "database",
"type": "mongodb",
"version": "latest",
"billing": {
"deploymentPlan": "nf-compute-50",
"storageClass": "ssd",
"storage": 4096,
"replicas": 1
},
"tlsEnabled": true,
"externalAccessEnabled": false
}
},
{
"kind": "CombinedService",
"ref": "payload",
"spec": {
"name": "payload",
"billing": {
"deploymentPlan": "nf-compute-50"
},
"deployment": {
"instances": 1
},
"ports": [
{
"name": "p01",
"internalPort": 3000,
"public": true,
"protocol": "HTTP"
}
],
"vcsData": {
"projectUrl": "https://github.com/northflank-guides/deploy-payload-on-northflank",
"projectType": "github",
"projectBranch": "master"
},
"buildSettings": {
"dockerfile": {
"buildEngine": "kaniko",
"dockerFilePath": "/Dockerfile",
"dockerWorkDir": "/"
}
}
}
},
{
"kind": "SecretGroup",
"spec": {
"name": "secrets",
"secretType": "environment-arguments",
"priority": 10,
"secrets": {
"variables": {
"PAYLOAD_PUBLIC_BASE_DNS": "https://${refs.payload.ports.0.dns}",
"PAYLOAD_SECRET": "${fn.randomSecret(32)}"
}
},
"addonDependencies": [
{
"addonId": "database",
"keys": [
{
"keyName": "MONGO_SRV",
"aliases": [
"MONGODB_URI"
]
}
]
}
]
}
}
]
}
}
}