There are many way to try out Docker PHP, a really slick one is creating a stack on Play with Docker.
Login or signup, then create a new instance.
Download a Docker PHP application definition:
curl -Lo docker-compose.yml https://gist.githubusercontent.com/cornernote/f3b6c62e76500afd26454e15c6d18d7e/raw/16a2e76e95976aa34bcf3d29c3ffeb57a03a3cbf/docker-compose.yml
And start the stack
docker-compose up -d
Your services will be available on their mapped port, just click the label right next to the node IP address.
If the link to the exposed port does not show then you can determine it from the SSH link provided. Simply convert the link as follows then visit the page.
Change:
ssh [email protected]
To:
http://EXAMPLE-80.direct.labs.play-with-docker.com
If nginx complains about a bad gateway, you may just need to wait about 60 seconds for everything to start up.
It may also be you have an invalid configuration file. See logs below.
When all else fails, check the logs.
Container logs:
docker-compose logs -f shinken