Skip to content

Commit

Permalink
Add blog container
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Sep 15, 2023
1 parent c2ff86e commit 5729cad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions infrastructure/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Resources:
Links:
- canopas-website-frontend
- canopas-website-backend
- canopas-blog

- Name: "canopas-website-frontend"
Memory: 512
Expand Down Expand Up @@ -189,6 +190,17 @@ Resources:
HostPort: 8080
Protocol: tcp

- Name: "canopas-blog"
Memory: 512
Cpu: 512
Essential: true
Image:
Fn::Sub: ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/canopas-blog:0a12ae04b5ff1e939ebb3218f855cc3f4bb928e8-1-dev-blog
PortMappings:
- ContainerPort: 3000
HostPort: 3000
Protocol: tcp

ECSService:
Type: AWS::ECS::Service
Properties:
Expand Down
2 changes: 1 addition & 1 deletion nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ server {
}

location /resources {
proxy_pass http://65.2.75.248:3000/resources;
proxy_pass http://canopas-blog:3000/resources;
proxy_set_header Host $host;
}
}
Expand Down

0 comments on commit 5729cad

Please sign in to comment.