This Repo Will Create new Docker Compose for use in Laravel Apllications.
- Docker
- Docker compose
- Basic knowledge of Docker.
To get started, the following steps needs to be taken:
-
Clone the repo.
-
cd
to the project directory. -
cd
tolaravel-docker
. -
Run
docker-compose up -d
to start the containers. -
Put Your Laravel application into "www" folder
-
copy "default.vhost" from in "sites" and rename to your application name
-
then restart docker
docker-compose restart
-
Visit http://0.0.0.0 to see your Laravel application.
To Check containers Status, Names and other info you can use
docker ps
Will show list on Runnig Containers
You can use container name to connet by using below command :
docker exec -it <CONTAINER NAME> sh