v2_input_multi_app.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. version: v2
  2. apps:
  3. - name: test-app
  4. image:
  5. repository: nginx
  6. tag: latest
  7. services:
  8. - name: example-web
  9. type: web
  10. run: node index.js
  11. port: 8080
  12. cpuCores: 0.1
  13. ramMegabytes: 256
  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. - name: example-wkr
  27. type: worker
  28. run: echo 'work'
  29. port: 80
  30. cpuCores: 0.1
  31. ramMegabytes: 256
  32. instances: 1
  33. - name: example-job
  34. type: job
  35. run: echo 'hello world'
  36. allowConcurrent: true
  37. cpuCores: 0.1
  38. ramMegabytes: 256
  39. cron: '*/10 * * * *'
  40. timeoutSeconds: 60
  41. suspendCron: false
  42. predeploy:
  43. type: job
  44. run: ls
  45. env:
  46. PORT: 8080
  47. NODE_ENV: production
  48. - name: next-test
  49. build:
  50. method: docker
  51. context: ./
  52. dockerfile: Dockerfile
  53. services:
  54. - name: example-web
  55. type: web
  56. run: node index.js
  57. port: 8080
  58. cpuCores: 0.1
  59. ramMegabytes: 256
  60. autoscaling:
  61. enabled: true
  62. minInstances: 1
  63. maxInstances: 3
  64. memoryThresholdPercent: 60
  65. cpuThresholdPercent: 60
  66. domains:
  67. - name: test1.example.com
  68. - name: test2.example.com
  69. healthCheck:
  70. enabled: true
  71. httpPath: /healthz
  72. env:
  73. PORT: 8080
  74. NODE_ENV: production