Using volumes on AWS fargate
Yes, I opened a support ticket and the AWS representative said that
Fargate is really intended as a stateless container solution. I took
that to mean it's more of a self-made Lambda rather than a managed
Docker solution. The suggestion to add persistent storage was taken
under consideration and will be added to the feature request list.
You can add the storage also at the time of container configuration may be you can use NFS or you can upload data from fargate to s3.

With bind mounts, a file or directory on the host machine is mounted into a container. Bind mount host volumes are supported when using either the EC2 or Fargate launch types. Fargate tasks only support nonpersistent storage volumes, so the host and sourcePath fields are not supported. For more information, see fargate task storage.

Your Amazon ECS service can optionally be configured to use Amazon ECS Service Discovery. Service discovery uses AWS Cloud Map API actions to manage HTTP and DNS namespaces for your Amazon ECS services. To create service discovery you can refer to here.