Skip to content

Instantly share code, notes, and snippets.

@rollue
Created July 24, 2020 05:11
Show Gist options
  • Select an option

  • Save rollue/292127841dd58e9ca573b9f56a7b1c4f to your computer and use it in GitHub Desktop.

Select an option

Save rollue/292127841dd58e9ca573b9f56a7b1c4f to your computer and use it in GitHub Desktop.
Example task definitions for fargate
# 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