version: v2 name: "js-test-app" image: repository: nginx tag: latest services: example-web: type: web run: node index.js port: 8080 cpuCores: 0.1 ramMegabytes: 256 autoscaling: enabled: true minInstances: 1 maxInstances: 3 memoryThresholdPercent: 60 cpuThresholdPercent: 60 domains: - name: test1.example.com - name: test2.example.com healthCheck: enabled: true httpPath: /healthz example-wkr: type: worker run: echo 'work' port: 80 cpuCores: 0.1 ramMegabytes: 256 instances: 1 example-job: type: job run: echo 'hello world' allowConcurrent: true cpuCores: 0.1 ramMegabytes: 256 cron: "*/10 * * * *" predeploy: type: job run: ls env: PORT: 8080 NODE_ENV: production