How to update/upgrade ERPNext if installed by using Docker compose?

Hello everyone,

I am totally new to ERPnext although I am familiar with Docker, Docker compose.

A little while ago, I installed ERPnext using Docker from GIT guide, per below

git clone https://github.com/frappe/frappe_docker
cd frappe_docker
docker compose -f pwd.yml up -d

I was able to login successfully and all.

Few days ago, I see there is a newer version of ERPnext (v.15+) so I wanted to update. I open and modify the file “pwd.yml” e.g. change the version number to v15.85.1 wherever there is “image:frappe/erpnext:” that has older version. I then save and close the file

Back to the command line, I took down the docker

$ docker compose -f pwd.yml down

Then I pull the new image, running

$ docker compose -f pwd.yml pull

And finally, run it

$ docker compose -f pwd.yml up -d

However, when I try to open it in the browser, it throws the error: Internal Server Error

Any idea how to fix it? And, what is the best way to update the software moving forward?

Thank you very much

ask chatgpt how to get your error logs and post them here… especially backend container