SVGs missing from new install

Yeah I was just about to post-- svgs aren’t loading because the js file they’re in has the url http://localhost:8087/svg-sprite/localhost/svg-…
and that script is trying to load
http://localhost:8087/svg-sprite/localhost:8087/svg-…
So the port in the hostname is the problem.
When I change DISCOURSE_HOSTNAME to simply localhost however the site doesn’t load at all. Seems like it needs the port some places but not others