For some instances I believe that should work. (I dont have much experience with Docker)
You can also edit certain css and html files, as well as <script> tags from the discourse admin panel when visiting your site at /admin/customize/themes/9/common/head_tag/edit.