mantis icon indicating copy to clipboard operation
mantis copied to clipboard

Best way to upgrade a Docker instance?

Open xme opened this issue 1 year ago • 3 comments

I was wondering if you have tips to upgrade a Mantis instance running in Docker? Without losing existing data. Just update the git repo and restart the ./docker-setup-ubuntu.sh script to build new images? Tx!

xme avatar Jun 03 '24 06:06 xme

Hey @xme

You need to get the latest Mantis repo (clone), re-run the setup script. The setup script will detect existing Mantis setup and provides you options on how to proceed. Choose an option where MongoDB instance is not deleted so that your existing data and the MongoDB instance are preserved.

Prateek-Thakare avatar Jun 03 '24 07:06 Prateek-Thakare

Hi Prateek, Nice, it ran smoothly! Tx! I does not seem to be critical, Mantis works, but I got this error at the end of the setup script: jq: error (at <stdin>:1): Cannot index array with string "Service"

xme avatar Jun 04 '24 09:06 xme

This error occurs because of changes to docker compose ps command output in the latest docker compose versions. Can you update your docker compose to the latest version and try the same? It should resolve it.

0xbharath avatar Jun 05 '24 04:06 0xbharath