Skip to content

emtized/laravel-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Repo Will Create new Docker Compose for use in Laravel Apllications.

 

 

Pre-requisites

  • Docker
  • Docker compose
  • Basic knowledge of Docker.

 

Installation

To get started, the following steps needs to be taken:

  • Clone the repo.

  • cd to the project directory.

  • cd to laravel-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.

 

Checking Containers

To Check containers Status, Names and other info you can use

docker ps

Will show list on Runnig Containers

Connectiong to a Container

You can use container name to connet by using below command :

docker exec -it <CONTAINER NAME> sh