Fixed in
https://github.com/discourse/discourse_docker/pull/566
Can you please try rebuilding again @Wingtip ?
That said, we don’t run PG12 anymore, so we may introduce some SQL syntax exclusive to PG13+ anytime in core, so it would be a good idea to schedule the upgrade someday.