Broken urls in Jekyll in Docker

I have this problem I have Jekyll site that runs inside docker and the urls are broken because it use http://0.0.0.0:4000 as site url.

I’m using this to run docker:

docker run --rm -ti -v $(pwd):/tmp/www -p 8080:4000 jcubic.pl

and it execute:

CMD jekyll serve --host 0.0.0.0

I can access http://localhost:8080 but all urls are broken.

Source: StackOverflow