Relation "scheduler_stats" does not exist

Have you tried entering the container and then running the migrations?

cd /var/discourse
./launcher enter app
rake db:migrate