I've setup ActiveStorage and ActionText by following the official guides. I can attach images and videos in local environment(localhost:3000). All the things are working well, even after I restart the server.
So I deploy my code change to staging. It looks all good when creating the blog. But I found if I redeploy the code(rebuild the docker image and start service by docker-compose up). The attachments for ActionText will just been invalid, which looks like this: