If using the Docker Desktop on MacOS to run your container, make sure you expand Optional Settings and set the Port mapping. So, for example, for me I needed...
Ports: 8080 : 8080/tcp