Can you access the rails console?
cd /var/docker
./launcher ssh app
to ssh into the docker container.
cd /var/www/discourse
RAILS_ENV=production bundle exec rails c
to launch the console.
Discourse.disable_readonly_mode
to disable the readonly mode.