I made an image, exposed port 8000, and started the symfony built-in server in the container. The port number is 8000, so there is no problem with internal access, then, port 8001 of the host machine is mapped to port 8000. According to my understanding, it should be okay. I made an image, exposed port 8000, and started the symfony built-in server in the container. The port number is 8000, so there is no problem with internal access, then, port 8001 of the host machine is mapped to port 8000. According to my understanding, it should be okay.
Reply content:
I made an image, exposed port 8000, and started the symfony built-in server in the container. The port number is 8000, so there is no problem with internal access, then, port 8001 of the host machine is mapped to port 8000. According to my understanding, it should be okay.
The default listener is localhost. You can change it to 0.0.0.0.
Http://symfony.com/doc/current/cookbook/web_server/built_in.html
$ Php bin/console server: start 0.0.0.0: 8000