github.com/in4it/ecs-deploy@v0.0.42-0.20240508120354-ed77ff16df25/provider/ecs/testdata/ecs.yaml (about) 1 # 2 # This file contains the definitions for one or more services on ECS 3 # Filename can be ecs.yaml or ecs.*.yaml (the latter one can be used for workers) 4 # 5 --- 6 # One or more services 7 services: 8 # ECS cluster name 9 - cluster: myservices 10 # service port used by the LoadBalancer 11 servicePort: 8080 12 # service protocol used by the LoadBalancer 13 serviceProtocol: HTTP 14 # Desired task count 15 desiredCount: 1 16 # Drain container for x seconds after removing the target from the loadbalancer 17 # (for example during an rolling upgrade) 18 deregistrationDelay: 30 19 # Service registry (enable service discovery) 20 serviceRegistry: domain.local 21 # network mode and configuration 22 networkMode: awsvpc 23 networkConfiguration: 24 securityGroups: 25 - sg-0123456abc 26 subnets: 27 - subnet-0123456abc 28 # container definitions 29 containers: 30 # Name of container (at least one container needs to match the serviceName) 31 - containerName: demo 32 # container image (optional if containerURI is defined) 33 containerImage: demo 34 # Full container URI of container to deploy 35 containerURI: $DOCKER_IMAGE_URL:$TAG 36 # Container port 37 containerPort: 8080 38 # memory reservation of container 39 memoryReservation: 512 40 # essential true/false 41 essential: true 42 # log configuration 43 logConfiguration: 44 logDriver: json-file 45 options: 46 max-size: 20m 47 max-file: 1 48 # healthcheck 49 healthCheck: 50 # healthy/unhealthy thresholds 51 healthyThreshold: 3 52 unhealthyThreshold: 3 53 # path to perform healthcheck on 54 path: "/healthcheck" 55 # interval in seconds 56 interval: 60 57 # http code to expect 58 matcher: "200,301" 59 # Loadbalancer rules 60 ruleConditions: 61 # hostname rule. Domain will be automatically appended 62 - hostname: demo 63 # Loadbalancer listeners to bind to (http/https) 64 listeners: 65 - http 66 - https