-
Notifications
You must be signed in to change notification settings - Fork 10
/
porter-stack.yaml
41 lines (36 loc) · 1.36 KB
/
porter-stack.yaml
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
version: v1stack # on launch, from the front-end, and on update, from the release
# on launch, from the front-end, and on update, from the DB
build:
method: pack
builder: heroku/buildpacks:20
context: './'
# type Build struct {
# Context *string `yaml:"context" validate:"dir"`
# Method *string `yaml:"method" validate:"required,oneof=pack docker registry"`
# Builder *string `yaml:"builder" validate:"required_if=Method pack"`
# Buildpacks []*string `yaml:"buildpacks"`
# Dockerfile *string `yaml:"dockerfile" validate:"required_if=Method docker"`
# Image *string `yaml:"image" validate:"required_if=Method registry"`
# }
env: # on launch, from the front-end, and on update, from the release
API_CLIENT_ID: foobar
API_CLIENT_SECRET: foobaz
# user specifies these
apps:
web-1:
run: launcher node index.js
config: # on launch, from the front-end and on update, from the release
resources:
requests:
cpu: 200m
memory: 256Mi
type: web # on launch, from the front-end and on update, from the release
web-2:
run: launcher node index.js
config: # on launch, from the front-end and on update, from the release
resources:
requests:
cpu: 200m
memory: 256Mi
type: web # on launch, from the front-end and on update, from the release
release: yarn release