Docker Nginx + PHP 7.2 + Sqlsrv
First, edit "/path/to/codes" in the docker-compose.yml file for the path of your project
#(PHP Section)
volumes:
- /path/to/codes:/usr/share/nginx/html
#and (WEB Section)
volumes:
- /path/to/codes:/usr/share/nginx/html
To recompile when changing Dockerfile (both PHP and Nginx)
To start the docker-compose in the background (-d)
To stop and exclude docker-compose
To open the bash of one of the images, in this case is the "web"
docker-compose exec web /bin/bash
docker-compose exec web ./serve.sh app.test /usr/share/nginx/html/app