In this section, we shall discuss creating a container definition for a MySQL database:
- Click on Configure for the Custom Container definition, as shown in the following screenshot. Some other container definitions are available as examples:
- In the Edit container dialog, specify a Container name (mysql) and specify Image as mysql, as shown in the following screenshot.
- Specify a Soft limit (512) and a Hard limit (1024) for memory. The hard limit for memory must not be less than the soft limit:
- Specify the Container port as 3306 in Port Mappings, with the Protocol as tcp, as shown in the following screenshot. With the Fargate launch type, only container port mappings may be configured. Host port mappings are not valid, and are set to the same value as the container port mappings:
- In the Advanced container configuration...