v2_input_nobuild.yaml 817 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. version: v2
  2. name: "js-test-app"
  3. image:
  4. repository: nginx
  5. tag: latest
  6. services:
  7. 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. example-wkr:
  26. type: worker
  27. run: echo 'work'
  28. port: 80
  29. cpuCores: 0.1
  30. ramMegabytes: 256
  31. instances: 1
  32. example-job:
  33. type: job
  34. run: echo 'hello world'
  35. allowConcurrent: true
  36. cpuCores: 0.1
  37. ramMegabytes: 256
  38. cron: "*/10 * * * *"
  39. predeploy:
  40. type: job
  41. run: ls
  42. env:
  43. PORT: 8080
  44. NODE_ENV: production