Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Amazon AWS EC2 Container Service support volumes?

The documentation suggests not. There is more information on their task definition page, including a mysql example, where a data volume is usually a reasonably good idea i.e.:

{
  "image": "mysql",
  "name": "db",
  "cpu": 10,
  "memory": 500,
  "essential": true,
  "entryPoint": [
    "/entrypoint.sh"
  ],
  "environment": [
    {
      "name": "MYSQL_ROOT_PASSWORD",
      "value": "pass"
    }
  ],
  "portMappings": []
}
like image 817
Jamie McCrindle Avatar asked Dec 20 '22 08:12

Jamie McCrindle


1 Answers

Yes, see the docs. They are configured as a part of an ECS Task Definition. Here is an article describing how to use them.

like image 153
dsummersl Avatar answered Feb 05 '23 06:02

dsummersl