https://github.com/lib4u/docker-laravel
Laravel docker fast template
https://github.com/lib4u/docker-laravel
docker docker-compose docker-laravel docker-laravel-template dockerfiles laravel-framework
Last synced: about 2 months ago
JSON representation
Laravel docker fast template
- Host: GitHub
- URL: https://github.com/lib4u/docker-laravel
- Owner: lib4u
- Created: 2024-08-05T15:31:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T19:07:27.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T12:43:57.974Z (over 1 year ago)
- Topics: docker, docker-compose, docker-laravel, docker-laravel-template, dockerfiles, laravel-framework
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Laravel + Nginx + Mysql in docker template
- Laravel latest version
- PHP FPM 8.2
- Nginx latest
- Mysql latest
### Get this template
```shell
git clone https://github.com/zodigancode/docker-laravel.git docker-laravel
```
```shell
cd docker-laravel
docker compose up -d
```
You need to run the following commands from the console of the laravel_php container. To start bash within docker container, use the command:
```shell
docker exec -it laravel_php sh
```
Run laravel installation with container console:
```shell
composer create-project laravel/laravel
```
Change `host` from `localhost` to `mysql`, dbname, username and password set to `laravel` in .env file