baseURL problem when running with docker-compose

Add these lines to the bottom of your site config file:

[[module.mounts]]
source = 'assets'
target = 'assets'

[[module.mounts]]
source = 'static'
target = 'assets'

Or place global images (those you might use anywhere on the site) in the assets directory.

Reference: https://discourse.gohugo.io/t/where-to-place-image-files-when-using-the-markdown-content-format/55087