Created
February 20, 2019 00:05
-
-
Save eulersson/bf70ff4d6619d895eaacf1636a6bba05 to your computer and use it in GitHub Desktop.
This file contains 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
BackendTaskDefinition: | |
Type: AWS::ECS::TaskDefinition | |
DependsOn: LogGroup | |
Properties: | |
Family: ecsfs-backend-td | |
Cpu: 256 | |
Memory: 1024 | |
NetworkMode: awsvpc | |
RequiresCompatibilities: | |
- FARGATE | |
ExecutionRoleArn: !Ref ExecutionRole | |
ContainerDefinitions: | |
- Name: ecsfs-backend-container | |
Image: docwhite/ecsfs-backend | |
PortMappings: | |
- ContainerPort: 5000 | |
LogConfiguration: | |
LogDriver: awslogs | |
Options: | |
awslogs-group: ecsfs-logs | |
awslogs-region: !Ref AWS::Region | |
awslogs-stream-prefix: backend | |
FrontendTaskDefinition: | |
Type: AWS::ECS::TaskDefinition | |
DependsOn: LogGroup | |
Properties: | |
Family: ecsfs-frontend-td | |
Cpu: 256 | |
Memory: 512 | |
NetworkMode: awsvpc | |
RequiresCompatibilities: | |
- FARGATE | |
ExecutionRoleArn: !Ref ExecutionRole | |
ContainerDefinitions: | |
- Name: ecsfs-frontend-container | |
Image: docwhite/ecsfs-frontend | |
PortMappings: | |
- ContainerPort: 3000 | |
LogConfiguration: | |
LogDriver: awslogs | |
Options: | |
awslogs-group: ecsfs-logs | |
awslogs-region: !Ref AWS::Region | |
awslogs-stream-prefix: frontend | |
NginxTaskDefinition: | |
Type: AWS::ECS::TaskDefinition | |
DependsOn: LogGroup | |
Properties: | |
Family: ecsfs-nginx-td | |
Cpu: 256 | |
Memory: 512 | |
NetworkMode: awsvpc | |
RequiresCompatibilities: | |
- FARGATE | |
ExecutionRoleArn: !Ref ExecutionRole | |
ContainerDefinitions: | |
- Name: ecsfs-nginx-container | |
Image: docwhite/ecsfs-nginx | |
PortMappings: | |
- ContainerPort: 80 | |
LogConfiguration: | |
LogDriver: awslogs | |
Options: | |
awslogs-group: ecsfs-logs | |
awslogs-region: !Ref AWS::Region | |
awslogs-stream-prefix: nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment