v2_input_nobuild.yaml 982 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. gpu: {}
  14. autoscaling:
  15. enabled: true
  16. minInstances: 1
  17. maxInstances: 3
  18. memoryThresholdPercent: 60
  19. cpuThresholdPercent: 60
  20. domains:
  21. - name: test1.example.com
  22. - name: test2.example.com
  23. healthCheck:
  24. enabled: true
  25. httpPath: /healthz
  26. timeoutSeconds: 5
  27. initialDelaySeconds: 10
  28. - name: example-wkr
  29. type: worker
  30. run: echo 'work'
  31. port: 80
  32. cpuCores: 0.1
  33. ramMegabytes: 256
  34. gpu: {}
  35. instances: 1
  36. - name: example-job
  37. type: job
  38. run: echo 'hello world'
  39. allowConcurrent: true
  40. cpuCores: 0.1
  41. ramMegabytes: 256
  42. gpu: {}
  43. cron: "*/10 * * * *"
  44. timeoutSeconds: 60
  45. suspendCron: false
  46. predeploy:
  47. type: job
  48. run: ls
  49. gpu: {}
  50. env:
  51. PORT: 8080
  52. NODE_ENV: production