- Add
127.0.0.1 simple-review-system.local
in your/etc/hosts
file. - Run
make dev
from the root of the project to run it in development environment. - Access it in your browser at: http://simple-review-system.local/
Those 3 steps are related to initial development environment setup. After that you can start the project with one simple command make start
docker-compose run --rm --no-deps phpfpm composer phpunit
docker-compose run --rm --no-deps phpfpm composer codecept api
- Run
make down
command which will executedocker-compose down
command for you. - Run
make dev
to build project from scratch.
In the build.sh
file on Line: 3 you can see that nginx-proxy
docker service will be started which will work on port 80, and all requests will be sent through them. When you create the project based on Docker, you only need to add VIRTUAL_HOST
environment variable to the docker service which will be a server (nginx, apache ...). After that you should put this host in your hosts file and that's it, your project will be accessible through that hostname.
You can read more details about nginx-proxy
at https://github.com/jwilder/nginx-proxy