Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

neoighodaro/laravel-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Creator | Getting Started

This repo has been discontinued. Please use Laravel Sail or Little Sail instead

 

 

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.
  • cd to the project directory.
  • cd to web and run the command to create a new Laravel project laravel new src.
  • Copy the .env.example file in the root of the project to .env and customise.
  • Run docker-compose up -d to start the containers.
  • Visit http://localhost:8888 to see your Laravel application.

 

Using Redis and/or MySQL

To use Redis or MySQL, uncomment the service definition in the docker-compose.yml file. Also remember to uncomment the links and depends_on list.

 

Troubleshooting

  • Port number might be already in use, change from 8888 to another number in your docker-compose.yml file.
  • If you have any other issues, report them.

About

Getting Started With Laravel and Docker.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published