Unable to upgrade discourse with separate data container

Okay, I was able to do a ./launcher rebuild web_only and now everything is working. I suppose that is what you have to do for a multisite install instead of using the /admin/upgrade page? I also added the PGHOST and PGPASSWORD environment variables in front of the command ‘sudo -E -u discourse bundle exec rake multisite:migrate’. Not sure if that was necessary or if the rebuild would have worked on its own.