Discourse offline after failed upgrade "bootstrap failed with exit code 5"

Launching the old image failed because migrations are forward only and irreversible. The latest plan is to build the docker image for discourse locally and push the container to the server