Dockerized Laravel application with volume on AWS Fargate issue

AWS Fargate does not persist local storage. Even if you configure your task to use volumes created on the instance, the life cycle of the instance is tied to the life cycle of the task so there is no point in persisting it (on local storage). The way you do this is by persisting data on an EFS share (ECS/Fargate integrates with EFS natively). This is blog 1 of a series of 3 that introduces the use cases and walk you through an example of how to set this up. Hope this helps.