Running Ghost in containers presents a storage challenge. Container filesystems are ephemeral - when a container restarts, any locally stored files disappear. This includes all uploaded images, making local storage unsuitable for production Ghost deployments on ECS.

The solution uses S3 for persistent storage and CloudFront for global content delivery. Ghost uploads images to S3, which persist across container restarts and scale across multiple container instances. CloudFront serves these images from edge locations worldwide, reducing latency and offloading traffic from your origin.