Full development environment for working on example laravel REST API.
Set path with Docker and project like:
/rest-api-package/rest-api - project code
/rest-api-package/rest-api-docker - dokcer code
Run:
$ docker-compose up -dYou are done, you can visit webpage on the following URL: 127.0.0.1
Note : you can rebuild all Docker images by running:
$ docker-compose buildor full rebuild:
$ docker-compose build --force-rm --no-cache --pullConnecting to shell
$ docker-compose exec php bashMySQL Commands.
$ docker-compose exec db mysql -ularavel -p"password"