It sounds like your issue is theme components, not settings. You can disable all of those. That’s what you want to do. Then add them back one by one to see that they work as you expect.
The discourse code you’re running is in /var/www/discourse inside the container, but you really don’t want to change anything there.