Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neoighodaro/laravel-docker
Getting Started With Laravel and Docker.
https://github.com/neoighodaro/laravel-docker
docker laravel
Last synced: 10 days ago
JSON representation
Getting Started With Laravel and Docker.
- Host: GitHub
- URL: https://github.com/neoighodaro/laravel-docker
- Owner: neoighodaro
- Archived: true
- Created: 2017-02-14T04:20:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T07:59:34.000Z (over 3 years ago)
- Last Synced: 2024-07-03T09:22:24.772Z (4 months ago)
- Topics: docker, laravel
- Language: Shell
- Size: 220 KB
- Stars: 56
- Watchers: 4
- Forks: 27
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Use this repository to get started with developing your Laravel application in a Docker container.
> This repo has been discontinued. Please use Laravel Sail or [Little Sail](https://github.com/neoighodaro/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](https://github.com/neoighodaro/laravel-docker/issues).