Slide 27
Slide 27 text
©Fusic Co., Ltd. 26
いままで : Nginx + PHP-FPM
これから? : Laravel on AWS(Fargate)
{
"containerDefinitions": [
{
"name": "nginx",
"image": "xxxxxxx",
"cpu": 128,
"memoryReservation": 256,
"portMappings": [
{
"containerPort": 80,
"hostPort": 80,
"protocol": "tcp"
}
],
...
},
{
"name": "php",
"image": "xxxxxxx",
"cpu": 128,
"memoryReservation": 256,
"portMappings": [],
...
}
],
...
"cpu": "256",
"memory": "512",
...
}
Fargate の タスク定義
- タスクの中で、nginxとphpのコンテナを
動かすように定義
- 外部ポートを開けるのは nginx側(80番)
- タスクのCPU, メモリを各コンテナにどう
割り当てるのか定義する