Created
July 24, 2020 05:11
-
-
Save rollue/292127841dd58e9ca573b9f56a7b1c4f to your computer and use it in GitHub Desktop.
Example task definitions for fargate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://getstream.io/blog/deploying-the-winds-api-to-aws-ecs-with-docker-compose/ | |
| version: 1 | |
| task_definition: | |
| ecs_network_mode: awsvpc | |
| task_execution_role: ecsTaskExecutionRole | |
| task_role_arn: arn... | |
| task_size: | |
| mem_limit: 2GB | |
| cpu_limit: 1024 | |
| services: | |
| django: | |
| cpu_shares: 75 | |
| mem_limit: 1.5GB | |
| nginx: | |
| cpu_shares: 15 | |
| mem_limit: 0.3GB | |
| run_params: | |
| network_configuration: | |
| awsvpc_configuration: | |
| subnets: | |
| - "subnet-..." | |
| - "subnet-..." | |
| security_groups: | |
| - "sg-..." | |
| assign_public_ip: ENABLED |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment