Firewallprobleem bij het draaien van meerdere containers na upgrade

This really sounds to me like something is going on at the host/server level, and not within the app containers. If the site works at all (e.g. you can use the Rails console) then the upgrade to PostgreSQL 13 isn’t the issue.