How do you persist data when deploying from source code?
Why would there be such a question? Isn’t the database and similar components installed by default? They are supposed to be persistent! Where exactly did you lose persistence? Please provide an example.
If this configuration is required, Docker needs to be restarted, and there will be no data.
What does this configuration mean? I’ve restarted my Docker multiple times, but the data is still there.
I modified the upload file size in the env, but it hasn’t taken effect yet. After restarting, the service failed to start. I had to perform a data migration to get it running again. I’m not sure what happened—maybe I misunderstood something. When restarting Docker for deployments using source code, the data won’t be lost, right?
Thank you for your reply. I’m still in the learning phase and not very proficient yet. Thank you.
Hey guys, I’m back. Every time I restart my source code deployment, I have to migrate data, and after migrating, the data disappears. What’s going on? Restarting Docker doesn’t seem to achieve data persistence. How can I import the previous data for the next deployment?