Configuring a Container definition
In this section, we shall discuss creating a container definition for a MySQL database:
- Click on
Configure
for theCustom
Container definition, as shown in the following screenshot. Some other container definitions are available as examples:
- In the
Edit container
dialog, specify aContainer name
(mysql
) and specifyImage
asmysql
, as shown in the following screenshot.
- Specify a
Soft limit
 (512
) and aHard limit
 (1024
) for memory. The hard limit for memory must not be less than the soft limit:
- Specify theÂ
Container port
as3306
inPort Mappings
, with theProtocol
astcp
, 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Â
|Â ENVIRONMENT
 section, specify the mandatory environment variable for theÂmysql
Docker image. The mandatory environment variable isÂMYSQL_ROOT_PASSWORD...