First of all you must have your PHP image up and running, but sadly you cant use the official one, you will need to build your own image, you can use this small script that I have wrote
There are many way to share your localhost environment globally, some works even if you are on
Windows mean while the others will only works on certain platform like
Linux . So I’ll list just few of them with links to the docs, but just be aware that I didnt use most of them, usually I spin a server and share it.
Vagrant Share (free) : Vagrant Share allows you to share your Vagrant environment with anyone in the world, enabling collaboration directly in your Vagrant environment in almost any network environment with just a single command: vagrant share. Vagrant Share will work with Windows, Linux and Mac.
Ngrok (freemium) : Secure tunnels to localhost. Ngrok will only work also with Windows, Linux and Mac.
Finch (freemium) : Finch allows you to easily share your local development website on a secure public URL accessible anywhere in the world. It’s really useful for sharing with your team, sharing with clients, testing on mobile devices and testing webhooks. Finsh works only on Mac.
I have been reading and watching many videos and online courses about Docker in the last few months, I watched Cloud Academy courses (even the latest course), Cloud Guru course and many more in the internet and most of them either talk about the basics of Docker, no one talk about docker in deep or as advanced topic, most of the teachers either have a programming experience or working as a team leaders who care mostly about how to use Docker in your development environment, and when they talk about production they talk of how they publish a small scale apps (one with two containers on the local machine they are using).
So why is this? none of them has talk about Docker in a way which will help other team leaders or any programmers to know why should they consider Docker for production, yes this might be the case of SysAdmin, but the team leader should know at least the basics so he can see where Docker can fit with his team, at the end now a days we are all a DevOps.
Most of the courses scratch the surface of Docker, and most of them dont cover the full spec or the power of Docker, and I really wish to see someone who will do that, cause I started to lose the hope that someone will do that in the near future.