version: v2 name: "test-app" image: repository: nginx tag: latest services: - name: example-web type: web run: node index.js port: 8080 cpuCores: 0.1 ramMegabytes: 256 gpu: {} 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 timeoutSeconds: 5 initialDelaySeconds: 10 - name: example-wkr type: worker run: echo 'work' port: 80 cpuCores: 0.1 ramMegabytes: 256 gpu: {} instances: 1 - name: example-job type: job run: echo 'hello world' allowConcurrent: true cpuCores: 0.1 ramMegabytes: 256 gpu: {} cron: "*/10 * * * *" timeoutSeconds: 60 suspendCron: false predeploy: type: job run: ls gpu: {} env: PORT: 8080 NODE_ENV: production