Docker version of Laravel Homestead
- OS ubuntu14.04
mv Dockerfile.ubuntu Dockerfile
docker build -t laravel-docker .
- OS Mac
mv Dockerfile.mac Dockerfile
docker build -t laravel-docker .
laravel version 5.4
You can find the latest build details on the Docker Hub
- Nginx 1.12
- PHP 7.0
- SQLite
- MySQL 5.5
- Redis
- NodeJS
- Bower
- Gulp
- Composer
- Laravel Envoy
- Laravel Installer
- Search for
ninjia
- docker pull ninjia/laravel-docker
- Point the
/var/www/html/app
volume to your local application directory.
- Pull in the image
docker pull ninjia/laravel-docker
- Run the container
docker run --name laravel -d -p 8088:80 -v /path/to/your/app:/var/www/html/app ninjia/laravel-docker
- Stop or start container
docker stop laravel
docker start laravel
- SSH to container
docker exec -ti laravel /bin/bash
supervisorctl reload
cd /var/www/html/app
ubuntu image
- MySQL Username =
homestead
- MySQL Password =
secret
- MySQL Database =
homestead