version: v2
name: my-app
services:
- name: api
type: web
run: node index.js
port: 8080
cpuCores: 0.1
ramMegabytes: 256
autoscaling:
enabled: true
minInstances: 1
maxInstances: 3
memoryThresholdPercent: 60
cpuThresholdPercent: 60
private: false
domains:
- name: test1.example.com
healthCheck:
enabled: true
httpPath: /healthz
- name: example-wkr
type: worker
run: echo 'work'
port: 8081
cpuCores: 0.1
ramMegabytes: 256
instances: 1
- name: example-job
type: job
run: echo 'hello world'
allowConcurrent: true
cpuCores: 0.1
ramMegabytes: 256
cron: '*/10 * * * *'
predeploy:
run: ls
build:
method: docker
context: ./
dockerfile: ./app/Dockerfile
env:
NODE_ENV: production
envGroups:
- production-env-group