This is a simple sample.
- docker
- nginx
- php-fpm
(with Docker for Mac. )
Make sure that you installed Docker (for Mac).
Ref. Docker for Mac
$ docker -v
Docker version 1.13.1-rc1, build 2527cfc
$ docker-compose -v
docker-compose version 1.10.0, build 4bd6f1a
$ docker-machine -v
docker-machine version 0.9.0, build 15fd4c7
$ git clone git@github.com:mochizukikotaro/docker-nginx-phpfpm.git
$ cd docker-nginx-phpfpm.git
$ docker-compose up
Access localhost:8080
, then you can get phpinfo.
$ docker-compose ps
$ docker-compose down