v2_input_nobuild.yaml 882 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. version: v2
  2. name: 'test-app'
  3. image:
  4. repository: nginx
  5. tag: latest
  6. services:
  7. - name: example-web
  8. type: web
  9. run: node index.js
  10. port: 8080
  11. cpuCores: 0.1
  12. ramMegabytes: 256
  13. autoscaling:
  14. enabled: true
  15. minInstances: 1
  16. maxInstances: 3
  17. memoryThresholdPercent: 60
  18. cpuThresholdPercent: 60
  19. domains:
  20. - name: test1.example.com
  21. - name: test2.example.com
  22. healthCheck:
  23. enabled: true
  24. httpPath: /healthz
  25. - name: example-wkr
  26. type: worker
  27. run: echo 'work'
  28. port: 80
  29. cpuCores: 0.1
  30. ramMegabytes: 256
  31. instances: 1
  32. - name: example-job
  33. type: job
  34. run: echo 'hello world'
  35. allowConcurrent: true
  36. cpuCores: 0.1
  37. ramMegabytes: 256
  38. cron: '*/10 * * * *'
  39. timeoutSeconds: 60
  40. suspendCron: false
  41. predeploy:
  42. type: job
  43. run: ls
  44. env:
  45. PORT: 8080
  46. NODE_ENV: production