Skip to content

Commit

Permalink
feat: expose 80
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Mar 19, 2024
1 parent 6ab6ad3 commit fca080a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
6 changes: 3 additions & 3 deletions .aws/task_definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"memory": "8192",
"portMappings": [
{
"name": "xuexiao-5050-tcp",
"containerPort": 5050,
"hostPort": 5050,
"name": "xuexiao-80-tcp",
"containerPort": 80,
"hostPort": 80,
"protocol": "tcp",
"appProtocol": "http"
}
Expand Down
6 changes: 3 additions & 3 deletions .aws/task_definition_preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"memory": "8192",
"portMappings": [
{
"name": "xuexiao-5050-tcp",
"containerPort": 5050,
"hostPort": 5050,
"name": "xuexiao-80-tcp",
"containerPort": 80,
"hostPort": 80,
"protocol": "tcp",
"appProtocol": "http"
}
Expand Down
25 changes: 2 additions & 23 deletions doc/init_aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,6 @@ Docker Compose's integration for ECS and ACI will be retired in November 2023. L
Successfully created ecs context "botmetaecscontext"
```

The current context in use is marked by * in the output of context listing:

```bash
$ docker context ls
```

```
NAME TYPE DESCRIPTION DOCKER ENDPOINT KUBERNETES ENDPOINT ORCHESTRATOR
botmetaecscontext ecs
default moby Current DOCKER_HOST based configuration unix:///var/run/docker.sock
```

To make all subsequent commands target Amazon ECS, make the newly created ECS context the one in use by running:

```bash
docker context use botmetaecscontext
```


Docker Compose converts the Compose file to a CloudFormation template defining a set of AWS resources. Details on the resource mapping can be found in the documentation. To review the CloudFormation template generated, we can run the command:

```bash
$ docker compose convert
```
#### REFERENCES
https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-private-integration.html

0 comments on commit fca080a

Please sign in to comment.