/laravel-docker

Getting Started With Laravel and Docker.

Primary LanguagePHPMIT LicenseMIT

Use this repository to get started with developing your Laravel application in a Docker container.

Creator | Getting Started

 

 

Pre-requisites

  • Docker running on the host machine.
  • Docker compose running on the host machine.
  • Basic knowledge of Docker.

 

Installation

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

  • Clone the repo git clone git@github.com:neoighodaro/laravel-docker.git appname
  • Change to the directory cd appname
  • Copy .env.example to .env and customise the contents.
  • Run docker-compose up -d to start the containers.
  • Visit http://localhost:8888 to see your Laravel Docker instance.

 

Troubleshooting

  • Port number might be already in use, change from 8888 to another number in your docker-compose.yml file.
  • If there are container name conflicts, update the container_name value for that container in the docker-compose.yml file.
  • If you have any other issues, report them.