Skip to content

Commit

Permalink
adding configs to support ecs-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
brentley committed Feb 15, 2019
1 parent 47b1594 commit 00ec2a2
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3'
services:
ecsdemo-frontend:
environment:
- CRYSTAL_URL=http://ecsdemo-crystal.service:3000/crystal
- NODEJS_URL=http://ecsdemo-nodejs.service:3000
image: brentley/ecsdemo-frontend
ports:
- "3000:3000"
logging:
driver: awslogs
options:
awslogs-group: ecsdemo-frontend
awslogs-region: us-east-1
awslogs-stream-prefix: ecsdemo-frontend
17 changes: 17 additions & 0 deletions ecs-params.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 1
task_definition:
task_execution_role: ecsTaskExecutionRole
ecs_network_mode: awsvpc
task_size:
mem_limit: 0.5GB
cpu_limit: 256
run_params:
network_configuration:
awsvpc_configuration:
subnets:
- "subnet-07105dbab6f04ae7f"
- "subnet-086d522cc6c273ac1"
- "subnet-0519235cdff9e7013"
security_groups:
- "sg-0e5cd18b6fbb61668"
assign_public_ip: DISABLED
17 changes: 17 additions & 0 deletions ecs-params.yml.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: 1
task_definition:
task_execution_role: ecsTaskExecutionRole
ecs_network_mode: awsvpc
task_size:
mem_limit: 0.5GB
cpu_limit: 256
run_params:
network_configuration:
awsvpc_configuration:
subnets:
- "$subnet_1"
- "$subnet_2"
- "$subnet_3"
security_groups:
- "$security_group"
assign_public_ip: DISABLED

0 comments on commit 00ec2a2

Please sign in to comment.