Guest User

manifest.yml

a guest
Nov 7th, 2023
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.95 KB | Source Code | 0 0
  1. # The manifest for the "survey-api" service.
  2. # Read the full specification for the "Load Balanced Web Service" type at:
  3. #  https://aws.github.io/copilot-cli/docs/manifest/lb-web-service/
  4.  
  5. name: service-name
  6. type: Backend Service
  7.  
  8. image:
  9.   build: Dockerfile
  10.   port: 8000
  11.  
  12. cpu: 256
  13. memory: 512
  14. platform: linux/arm64
  15. count: 1
  16. exec: true
  17. command: gunicorn -k gevent --bind 0.0.0.0:8000 survey_api.wsgi:application
  18.  
  19. variables:
  20.  // Key-value pairs of environment variables to set for the container.
  21.  
  22. environments:
  23.   staging:
  24.     variables:
  25.       ENVIRONMENT: staging
  26.       // Key-value pairs of environment variables to set for the container.
  27.   production:
  28.     cpu: 1024
  29.     memory: 2048
  30.     count:
  31.       range: 1-5
  32.       cooldown:
  33.         in: 30s
  34.         out: 30s
  35.       cpu_percentage: 70
  36.       memory_percentage: 80
  37.     variables:
  38.       ENVIRONMENT: production
  39.       // Key-value pairs of environment variables to set for the container.
  40.  
Advertisement
Add Comment
Please, Sign In to add comment