It looks like you have not set the data path, You are also using 2 old environment options that you can remove.
Do you remember what volume you had mapped to /home/node/.n8n originally? If you just copied the examples in the docs it might be -v n8n_data:/home/node/.n8n or -v ~/.n8n:/home/node/.n8n depending on when you first set n8n up (and if you remembered to add this).
If you didn’t add this your workflows would have been in the docker image which you have replaced.
Yeah that is pretty outdated, Looking at that the only time you wouldn’t get an issue would be when you go to use queue mode using the example they have.
I would recommend checking out our install guides as they will help you with this sort of thing: Docker | n8n Docs
Yeah that to me looks like a better option and it matches what our “how-to” suggests What this will do is create a docker volume called n8n_data and the data from that will be mapped in the container under the /home/node/.n8n path which is where we store the database that has everything in it.
When upgrading in the future as long as you use the same docker volume all of your data will be there.